shish %!s(int64=3) %!d(string=hai) anos
pai
achega
e707445ff4
Modificáronse 1 ficheiros con 1 adicións e 7 borrados
  1. 1 7
      app-pt/controllers/WxController.php

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

@@ -184,13 +184,7 @@ class WxController extends PublicController
 //                        $pc->encryptMsg($text, $timestamp, $nonce, $encryptMsg);//加密
 //                        echo $encryptMsg;
 
-                        $text = $this->replyTextContent("您的微信ID:");
-                        $pc = new \WXBizMsgCrypt($openToken, $encodingAesKey, $openAppId);
-                        $encryptMsg = '';
-                        $pc->encryptMsg($text, $timestamp, $nonce, $encryptMsg);//加密
-                        echo $encryptMsg;
-
-                        $text = $this->replyTextContent($this->fromUsername);
+                        $text = $this->replyTextContent("您的微信ID: \n {$this->fromUsername}");
                         $pc = new \WXBizMsgCrypt($openToken, $encodingAesKey, $openAppId);
                         $encryptMsg = '';
                         $pc->encryptMsg($text, $timestamp, $nonce, $encryptMsg);//加密