shish 6 жил өмнө
parent
commit
f545f8cbd6

+ 2 - 3
app/saas/controllers/WxController.php

@@ -419,14 +419,13 @@ class WxController extends PublicController
 						}
 						util::end();
 					}
-					$text = $this->replyTextContent("^_^");//没有管理员返回的信息
+					//$text = $this->replyTextContent("^_^");
+					$text = $this->replyTextContent(Yii::$app->params['mallDomain'] . '/#/?account=' . $merchantId);
 					$pc = new \WXBizMsgCrypt($openToken, $encodingAesKey, $openAppId);
 					$encryptMsg = '';
 					$pc->encryptMsg($text, $timestamp, $nonce, $encryptMsg);//加密
 					echo $encryptMsg;
-					
 				}
-				
 			} elseif ($this->msgType == 'image') {
 				$PicUrl = (string)$PicUrl;
 				if (empty($PicUrl)) {