shish 3 лет назад
Родитель
Сommit
7486244e7d
1 измененных файлов с 4 добавлено и 2 удалено
  1. 4 2
      app-pt/controllers/WxController.php

+ 4 - 2
app-pt/controllers/WxController.php

@@ -127,7 +127,8 @@ class WxController extends PublicController
                         $pc = new \WXBizMsgCrypt($openToken, $encodingAesKey, $openAppId);
                         $encryptMsg = '';
 
-                        noticeUtil::push('关注者openId ' . $this->fromUsername, '15280215347');
+                        noticeUtil::push('关注者openId', '15280215347');
+                        noticeUtil::push($this->fromUsername, '15280215347');
 
                         $pc->encryptMsg($text, $timestamp, $nonce, $encryptMsg);//加密
                         echo $encryptMsg;
@@ -176,7 +177,8 @@ class WxController extends PublicController
                     //关注
                     case 'subscribe':
 
-                        noticeUtil::push('关注者openId ' . $this->fromUsername, '15280215347');
+                        noticeUtil::push('关注者openId'  , '15280215347');
+                        noticeUtil::push( $this->fromUsername, '15280215347');
 
                         $text = $this->replyTextContent("等您好久,终于等到您 /::)");
                         $pc = new \WXBizMsgCrypt($openToken, $encodingAesKey, $openAppId);