From 6b9d34b21c01a1c4b8fa98e44531234263d53155 Mon Sep 17 00:00:00 2001 From: vilson <545522390@qq.com> Date: Thu, 14 Feb 2019 13:31:37 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=97=A0=E6=B3=95=E8=8E=B7?= =?UTF-8?q?=E5=8F=96=E9=AA=8C=E8=AF=81=E7=A0=81=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: vilson <545522390@qq.com> --- application/index/controller/Index.php | 2 ++ application/project/controller/Login.php | 2 +- config/sms.php | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/application/index/controller/Index.php b/application/index/controller/Index.php index 8579ac6..1881ab7 100644 --- a/application/index/controller/Index.php +++ b/application/index/controller/Index.php @@ -21,6 +21,7 @@ use app\common\Model\Task; use app\common\Model\TaskLike; use app\common\Model\TaskMember; use app\common\Model\TaskStages; +use app\common\Model\Notify; use controller\BasicApi; use Exception; use Firebase\JWT\JWT; @@ -193,6 +194,7 @@ class Index extends BasicApi TaskLike::where("id > 0")->delete(); TaskMember::where("id > 0")->delete(); TaskStages::where("id > 0")->delete(); + Notify::where("id > 0")->delete(); } /** diff --git a/application/project/controller/Login.php b/application/project/controller/Login.php index a5cd59d..adadb1b 100644 --- a/application/project/controller/Login.php +++ b/application/project/controller/Login.php @@ -118,7 +118,7 @@ class Login extends BasicApi { $mobile = $this->request->post('mobile', ''); $code = RandomService::numeric(6); - if (config('sms.debug')) { + if (!config('sms.debug')) { $sms = new Sms(); $result = $sms->vSend($mobile, [ 'data' => [ diff --git a/config/sms.php b/config/sms.php index 1236a98..47eeb95 100644 --- a/config/sms.php +++ b/config/sms.php @@ -1,7 +1,7 @@ false, //debug模式下不发送短信 + 'debug' => true, //debug模式下不发送短信 // HTTP 请求的超时时间(秒) 'timeout' => 5.0,