|
|
|
@ -126,7 +126,7 @@ class UserService
|
|
|
|
|
}
|
|
|
|
|
$userData['token'] = $token;
|
|
|
|
|
$status = M('user', 'tab_')->where(['id' => $user['id']])->save($userData);
|
|
|
|
|
if ($status) {
|
|
|
|
|
if (!$status) {
|
|
|
|
|
return ['status' => false, 'message' => '登录异常'];
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -142,7 +142,7 @@ class UserService
|
|
|
|
|
'token' => $token,
|
|
|
|
|
'user_token' => $userToken,
|
|
|
|
|
];
|
|
|
|
|
return ['status' => true, 'message' => '登录异常', 'data' => $data];
|
|
|
|
|
return ['status' => true, 'message' => '登录成功', 'data' => $data];
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
protected function isDeviceError($user, $testResource, $deviceNum)
|
|
|
|
|