stanley-king пре 7 година
родитељ
комит
35a1cab6e3

+ 1 - 0
core/framework/libraries/sms.php

@@ -20,6 +20,7 @@ class Sms
     const order_received = 8;
     const getfcode_code = 9;
 
+    const tpl_reg_user_bonus = '';   
     const tpl_reg_inviter = '217638';           //亲爱的会员,{1}成为您的{2}度粉丝,您获得{3}元全抵红包。退订回复N
     const tpl_reg_invitee = '217637';           //亲爱的会员,您的好友{1}成为{2}的{3}度粉丝,您获得{4}元雨露均沾红包。
     const tpl_order_complete_all = '217634';    //亲爱的会员,您的好友{1}下单成功,您获得{2}元全抵红包。登陆APP可查看红包余额!退订回复N

+ 1 - 0
helper/push_helper.php

@@ -155,6 +155,7 @@ class push_helper
         $push_param['extra']['show_type'] = 'pop';
         $push_param['extra']['url']      = schema_helper::bonus_detail($type_sn);
         $push_param['extra']['image']    = self::admin_avatar();
+        self::push($inviter,$push_param,Sms::tpl_reg_inviter,['user_name' => $user_info->nickname(),'level','amount' => $money],$fQueue);
 
         QueueClient::push('upushSendMsg',$push_param);
     }

+ 1 - 1
test/account_helperTest.php

@@ -15,7 +15,7 @@ require_once(BASE_ROOT_PATH . '/helper/account_helper.php');
 require_once(BASE_ROOT_PATH . '/helper/category_helper.php');
 require_once(BASE_ROOT_PATH . '/helper/brand_helper.php');
 
-class account_helperTest extends PHPUnit_Framework_TestCase
+class testAccounthelper extends PHPUnit_Framework_TestCase
 {
     public static function setUpBeforeClass()
     {

+ 1 - 1
test/TestAsyncPush.php

@@ -23,7 +23,7 @@ class TestAsyncPush extends PHPUnit_Framework_TestCase
     }
     public function testRegister()
     {
-        $iPusher = new async\register(36525,0);
+        $iPusher = new async\register(36490,0);
         $iPusher->run();
     }
 }

+ 1 - 3
test/queueTest.php

@@ -12,7 +12,7 @@ define('BASE_ROOT_PATH',str_replace('/test','',dirname(__FILE__)));
 require_once(BASE_ROOT_PATH . '/fooder.php');
 
 
-class queueTest extends PHPUnit_Framework_TestCase
+class testQueue extends PHPUnit_Framework_TestCase
 {
     public static function setUpBeforeClass()
     {
@@ -27,8 +27,6 @@ class queueTest extends PHPUnit_Framework_TestCase
 
         $y = json_encode($x);
 
-
-
         $param['member_id'] = 36490;
         $param['text']      = "红包退还通知:您发送的红包已超过24小时,退还未被领取的金额1234元,请在收支明细中查看.";
         $param['go_type']   = '';

+ 1 - 1
test/relation_helperTest.php

@@ -14,7 +14,7 @@ require_once(BASE_ROOT_PATH . '/helper/relation_helper.php');
 require_once(BASE_ROOT_PATH . '/helper/performance_helper.php');
 require_once(BASE_ROOT_PATH . '/helper/algorithm.php');
 
-class relation_helperTest extends PHPUnit_Framework_TestCase
+class testRelationHelper extends PHPUnit_Framework_TestCase
 {
     public static function setUpBeforeClass()
     {

+ 20 - 0
test/TestSms.php

@@ -0,0 +1,20 @@
+<?php
+/**
+ * Created by PhpStorm.
+ * User: stanley-king
+ * Date: 2017/11/14
+ * Time: 下午7:44
+ */
+
+define('BASE_ROOT_PATH',str_replace('/test','',dirname(__FILE__)));
+require_once(BASE_ROOT_PATH . '/fooder.php');
+require_once(BASE_ROOT_PATH . '/helper/stat_helper.php');
+require_once(BASE_ROOT_PATH . '/helper/stat_helper.php');
+
+class TestSms extends PHPUnit_Framework_TestCase
+{
+    public static function setUpBeforeClass()
+    {
+        Base::run_util();
+    }
+}

+ 1 - 1
test/systemTest.php

@@ -12,7 +12,7 @@ define('BASE_ROOT_PATH',str_replace('/test','',dirname(__FILE__)));
 require_once(BASE_ROOT_PATH . '/fooder.php');
 require_once(BASE_DATA_PATH . '/api/audio/getid3.php');
 
-class systemTest extends PHPUnit_Framework_TestCase
+class testSystem extends PHPUnit_Framework_TestCase
 {
     public static function setUpBeforeClass()
     {

+ 0 - 1
test/pay_helperTest.php

@@ -12,7 +12,6 @@ class pay_helperTest extends PHPUnit_Framework_TestCase
 {
     public function testAdd()
     {
-
         $y = unserialize('a:8:{s:11:"home1_title";s:9:"那句好";s:5:"image";s:0:"";s:9:"show_type";s:4:"vote";s:9:"show_data";s:0:"";s:4:"type";s:4:"vote";s:4:"data";s:75:"[{"id":0,"text":"u7b2cu4e00u53e5"},{"id":1,"text":"u7b2cu4e8cu53e5"}]";s:5:"title";s:9:"那句好";s:8:"reserved";s:11:"vote_type=0";}');
         $mobiles = array();
         $mobiles['139111269867'] = '江海苗C';