Merge pull request '优化' (#40) from feature/ban_log into master

Reviewed-on: http://8.136.139.249:3000/wmtx/sdk/pulls/40
master
廖金灵 3 years ago
commit 9b10fb0f09

@ -95,6 +95,7 @@ class UserService
$deviceNum = $params['device_num'] ?? ''; $deviceNum = $params['device_num'] ?? '';
if ($this->isBan($clientIp, $deviceNum)) { if ($this->isBan($clientIp, $deviceNum)) {
Log::write(date('Y-m-d H:i:s') . ' account:' . $account . ' clientIp:' . $clientIp . ' deviceNum:' . $deviceNum, 'INFO', '', C('LOG_PATH')."login_ban.log");
return ['status' => false, 'message' => '设备已被禁用']; return ['status' => false, 'message' => '设备已被禁用'];
} }

Loading…
Cancel
Save