up. 添加客户端锁定日志
This commit is contained in:
parent
75b883d317
commit
59bd92bce3
@ -91,7 +91,9 @@ class Worker extends Command
|
|||||||
$client->save(['is_lock'=>1,'lock_password'=>$lock_password,'lock_time'=>date('Y-m-d H:i:s')]);
|
$client->save(['is_lock'=>1,'lock_password'=>$lock_password,'lock_time'=>date('Y-m-d H:i:s')]);
|
||||||
// 锁定屏幕
|
// 锁定屏幕
|
||||||
$connection->send(json_encode(['event'=>'LOCK_CLIENT_SCREEN']));
|
$connection->send(json_encode(['event'=>'LOCK_CLIENT_SCREEN']));
|
||||||
|
if(empty($lock_password)){
|
||||||
|
$lock_password = password_hash("1", PASSWORD_DEFAULT);
|
||||||
|
}
|
||||||
SysUserClientLog::create([
|
SysUserClientLog::create([
|
||||||
'event' => 'LOCK',
|
'event' => 'LOCK',
|
||||||
'message'=> "A. 锁定客户端",
|
'message'=> "A. 锁定客户端",
|
||||||
|
|||||||
@ -59,7 +59,7 @@ class AuthController extends BaseController
|
|||||||
SysUserClientLog::create([
|
SysUserClientLog::create([
|
||||||
'event' => 'UNLOCK_ERROR',
|
'event' => 'UNLOCK_ERROR',
|
||||||
'message'=> "1. 尝试解锁,密码错误",
|
'message'=> "1. 尝试解锁,密码错误",
|
||||||
'data' => json_encode(['inputPass'=> password_hash($password)]),
|
'data' => json_encode(['inputPass'=> password_hash($password, PASSWORD_DEFAULT)]),
|
||||||
'create_time' => date('Y-m-d H:i:s'),
|
'create_time' => date('Y-m-d H:i:s'),
|
||||||
'client_data_id'=> $clientModel['id']
|
'client_data_id'=> $clientModel['id']
|
||||||
]);
|
]);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user