忽略runtime目录
This commit is contained in:
parent
68b75ca7b6
commit
67413ccd65
1
.gitignore
vendored
1
.gitignore
vendored
@ -1,6 +1,7 @@
|
||||
/.idea
|
||||
/.vscode
|
||||
/runtime
|
||||
/public/runtime
|
||||
*.log
|
||||
.env
|
||||
.phpstorm.meta.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));
|
||||
}
|
||||
}
|
||||
|
@ -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']);
|
||||
|
Loading…
x
Reference in New Issue
Block a user