修复无法获取验证码的问题

Signed-off-by: vilson <545522390@qq.com>
This commit is contained in:
vilson 2019-02-14 13:31:37 +08:00
parent bec96d2905
commit 6b9d34b21c
3 changed files with 4 additions and 2 deletions

View File

@ -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();
}
/**

View File

@ -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' => [

View File

@ -1,7 +1,7 @@
<?php
return [
'debug' => false, //debug模式下不发送短信
'debug' => true, //debug模式下不发送短信
// HTTP 请求的超时时间(秒)
'timeout' => 5.0,