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,