|
|
|
@ -66,7 +66,7 @@ class UserService
|
|
|
|
|
|
|
|
|
|
protected function isBan($ip, $deviceNum)
|
|
|
|
|
{
|
|
|
|
|
$ban = M('device_bans','tab_')->select(['id'])->where(['tag' => ['in', [$ip, $deviceNum]]])->limit(1)->find();
|
|
|
|
|
$ban = M('device_bans','tab_')->field(['id'])->where(['tag' => ['in', [$ip, $deviceNum]]])->limit(1)->find();
|
|
|
|
|
if (empty($ban)) {
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
@ -92,7 +92,7 @@ class UserService
|
|
|
|
|
return ['status' => false, 'message' => '账号或密码错误'];
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
$testResource = M('test_resource','tab_')->select(['device_number'])->where('user_id=%s and apply_status=2', $user['id'])->find(); //测试资源(扶持号)
|
|
|
|
|
$testResource = M('test_resource','tab_')->field(['device_number'])->where('user_id=%s and apply_status=2', $user['id'])->find(); //测试资源(扶持号)
|
|
|
|
|
if ($testResource) {
|
|
|
|
|
if ($this->isIpWarning($user, $testResource, $deviceNum)) {
|
|
|
|
|
$this->ipWarningLog($user, $testResource, $deviceNum);
|
|
|
|
|