shish 5 năm trước cách đây
mục cha
commit
e701a14c24

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

@@ -123,7 +123,8 @@ class WxController extends PublicController
                         $pc = new \WXBizMsgCrypt($openToken, $encodingAesKey, $openAppId);
                         $pc = new \WXBizMsgCrypt($openToken, $encodingAesKey, $openAppId);
                         $encryptMsg = '';
                         $encryptMsg = '';
                         $pc->encryptMsg($text, $timestamp, $nonce, $encryptMsg);//加密
                         $pc->encryptMsg($text, $timestamp, $nonce, $encryptMsg);//加密
-                        echo $encryptMsg;
+                        //echo $encryptMsg;
+                        wxUtil::sendMiniMsg('111111', $merchant, $this->fromUsername, 1);
                         break;
                         break;
                     //取消关注
                     //取消关注
                     case 'unsubscribe':
                     case 'unsubscribe':