Charlie 8 years ago
parent
commit
c5e11394ca

+ 1 - 1
www/protected/components/CommonSMS.php

@@ -15,7 +15,7 @@ class CommonSMS{
                 break;
 
             case 'final_order'://订单完成后发送短信
-                Service::factory('SendSMSService')->tpl_send_sms(1594480,'#name#='.$params['name'].'&#num#='.$params['num'],$params['mobile']);
+                Service::factory('SendSMSService')->tpl_send_sms(1594588,'#name#='.$params['name'].'&#num#='.$params['num'],$params['mobile']);
                 // Service::factory('SendSMSService')->tpl_send_sms(862005,'#name#='.$params['name'],$params['mobile']);
                 break;
 

+ 1 - 1
www/protected/vendors/weixin/WeiXinSdk.php

@@ -11,7 +11,7 @@ class WeiXinSdk {
     public function getSignPackage($url = "") {
         $jsapiTicket = $this->getJsApiTicket();
         $url = $url?$url:"http://$_SERVER[HTTP_HOST]$_SERVER[REQUEST_URI]";
-        $timestamp = time();
+        $timestamp = (string)time();
         $nonceStr = $this->createNonceStr();
 
         // 这里参数的顺序要按照 key 值 ASCII 码升序排序