|
|
@@ -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);//加密
|