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

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

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