Sfoglia il codice sorgente

修改绑定红包自动注册为用户的短信内容参数

zhouzhijian 8 anni fa
parent
commit
1e589f964d
2 ha cambiato i file con 4 aggiunte e 3 eliminazioni
  1. 2 2
      helper/sms_helper.php
  2. 2 1
      helper/user_helper.php

+ 2 - 2
helper/sms_helper.php

@@ -65,9 +65,9 @@ class sms_helper
         return array('code' => 200);
     }
 
-    static public function send_nostore_message($mobile, $itype, $code)
+    static public function send_nostore_message($content)
     {
-        QueueClient::push('sendSMS',array('mobile'=>$mobile,'type'=>$itype,'code'=>$code,'time'=>'5'));
+        QueueClient::push('sendSMS', $content);
     }
 
     static public function check_code($itype,$code,$mobile)

+ 2 - 1
helper/user_helper.php

@@ -123,7 +123,8 @@ class user_helper
 
             $success = $model->addMember($member_info);
             if ($success == true) {
-                sms_helper::send_nostore_message($mobile, Sms::bindbonus_register_code, $password);
+                $content = array('mobile'=>$mobile,'type'=> Sms::bindbonus_register_code, 'user' => $mobile, 'code'=>$password,'time'=>'5');
+                sms_helper::send_nostore_message($content);
             }
         }
     }