diff --git a/app/api/controller/Wxserver.php b/app/api/controller/Wxserver.php index 5ea2797b..4ff20504 100644 --- a/app/api/controller/Wxserver.php +++ b/app/api/controller/Wxserver.php @@ -71,12 +71,12 @@ class Wxserver extends BaseController $model = new WxserverAccount(); $model->update($up, ['appid' => $appid]); } + echo 'success'; } elseif ($data['MsgType'] == 'text') { echo $this->responseText($data); } } } - echo 'success'; } private function responseText($data): string