...
|
...
|
@@ -103,6 +103,9 @@ class PersonController extends RestBaseController |
|
|
if (empty($result)) {
|
|
|
$this->error("登录失败!");
|
|
|
}
|
|
|
$arr['last_login_ip'] = get_client_ip();
|
|
|
$arr['last_login_time'] = time();
|
|
|
$userQuery->where(['mobile'=>$data['mobile'],'user_type'=>2])->update($arr);
|
|
|
$this->success("登录成功!", ['token' => $token]);
|
|
|
}else{
|
|
|
$this->error("请求方式错误!");
|
...
|
...
|
@@ -171,6 +174,9 @@ class PersonController extends RestBaseController |
|
|
if (empty($result)) {
|
|
|
$this->error("登录失败!");
|
|
|
}
|
|
|
$arr['last_login_ip'] = get_client_ip();
|
|
|
$arr['last_login_time'] = time();
|
|
|
$userQuery->where(['mobile'=>$data['mobile'],'user_type'=>2])->update($arr);
|
|
|
$this->success("登录成功!", ['token' => $token]);
|
|
|
}else{
|
|
|
$this->error("请求方式错误!");
|
...
|
...
|
|