From 67413ccd6510555b7e524dfcc928ba204c812d70 Mon Sep 17 00:00:00 2001 From: luofei <604446095@qq.com> Date: Mon, 19 Feb 2024 09:32:31 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BF=BD=E7=95=A5runtime=E7=9B=AE=E5=BD=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 1 + app/common/middleware/LogMiddleware.php | 2 +- app/controller/api/Auth.php | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index f31e7139..2104607e 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,7 @@ /.idea /.vscode /runtime +/public/runtime *.log .env .phpstorm.meta.php diff --git a/app/common/middleware/LogMiddleware.php b/app/common/middleware/LogMiddleware.php index 740d467c..f3268e46 100644 --- a/app/common/middleware/LogMiddleware.php +++ b/app/common/middleware/LogMiddleware.php @@ -31,6 +31,6 @@ class LogMiddleware extends BaseMiddleware public function after(Response $response) { if ($this->request->method() == 'GET') return; -// SwooleTaskService::log($this->request->merId(), AdminLogRepository::parse($this->request)); + SwooleTaskService::log($this->request->merId(), AdminLogRepository::parse($this->request)); } } diff --git a/app/controller/api/Auth.php b/app/controller/api/Auth.php index 3aae611f..f275d447 100644 --- a/app/controller/api/Auth.php +++ b/app/controller/api/Auth.php @@ -357,7 +357,7 @@ class Auth extends BaseController $data = $this->request->params(['phone', 'sms_code', 'spread', 'auth_token', ['user_type', 'h5']]); $validate->sceneSmslogin()->check($data); $sms_code = app()->make(SmsService::class)->checkSmsCode($data['phone'], $data['sms_code'], 'login'); -// if (!$sms_code) return app('json')->fail('验证码不正确'); + if (!$sms_code) return app('json')->fail('验证码不正确'); $user = $repository->accountByUser($data['phone']); if (!$user) $user = $repository->getWhere(['phone' => $data['phone']]); $auth = $this->parseAuthToken($data['auth_token']);