|
|
@@ -124,7 +124,10 @@ class WxController extends PublicController
|
|
|
$pc = new \WXBizMsgCrypt($openToken, $encodingAesKey, $openAppId);
|
|
|
$encryptMsg = '';
|
|
|
$pc->encryptMsg($text, $timestamp, $nonce, $encryptMsg);//加密
|
|
|
- echo $encryptMsg;
|
|
|
+ //echo $encryptMsg;
|
|
|
+
|
|
|
+ wxUtil::sendMiniMsg('123456789', $merchant, (string)$this->fromUsername, 1);
|
|
|
+
|
|
|
break;
|
|
|
//取消关注
|
|
|
case 'unsubscribe':
|
|
|
@@ -140,7 +143,7 @@ class WxController extends PublicController
|
|
|
Yii::info('1243 '.$this->fromUsername.' '.json_encode($merchant));
|
|
|
if ($postObj->PagePath == 'pagesClient/official/warn') {
|
|
|
$content = '好的好的';
|
|
|
- $r = wxUtil::sendMiniMsg($content, $merchant, (string)$this->fromUsername, 1);
|
|
|
+ $r = wxUtil::sendMiniMsg('123456', $merchant, (string)$this->fromUsername, 1);
|
|
|
Yii::info('098'.' '.json_encode($r));
|
|
|
}
|
|
|
}
|