代码提交

This commit is contained in:
wong
2025-11-04 17:48:51 +08:00
parent a4060fec1b
commit adc22c7d19
11 changed files with 1444 additions and 38 deletions

View File

@@ -21,6 +21,9 @@ class LoginController extends Controller
->join('device d', 'du.deviceId = d.id and u.companyId = du.companyId')
->where(['d.deviceImei' => $deviceId, 'u.deleteTime' => 0, 'du.deleteTime' => 0, 'd.deleteTime' => 0])
->find();
if (empty($user)) {
return errorJson('用户不存在');
}
$member = array_merge($user, [
'lastLoginIp' => $this->request->ip(),
'lastLoginTime' => time()