shish 5 년 전
부모
커밋
8a56522aab
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      app-pt/controllers/WxController.php

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

@@ -124,7 +124,7 @@ class WxController extends PublicController
                         $encryptMsg = '';
                         $encryptMsg = '';
                         $pc->encryptMsg($text, $timestamp, $nonce, $encryptMsg);//加密
                         $pc->encryptMsg($text, $timestamp, $nonce, $encryptMsg);//加密
                         //echo $encryptMsg;
                         //echo $encryptMsg;
-                        $r = wxUtil::sendMsg('111111', $merchant, $this->fromUsername, 1);
+                        $r = wxUtil::sendMsg('111111', $merchant, (string)$this->fromUsername, 1);
                         Yii::info('657'.' '.$this->fromUsername.' '.json_encode($r));
                         Yii::info('657'.' '.$this->fromUsername.' '.json_encode($r));
                         Yii::info(json_encode($merchant));
                         Yii::info(json_encode($merchant));
                         Yii::info(json_encode($getUserInfo));
                         Yii::info(json_encode($getUserInfo));