up. 添加客户端锁定日志
This commit is contained in:
parent
1e499f7717
commit
073cdf9c2b
@ -87,17 +87,19 @@ class Worker extends Command
|
||||
'client_name'=> $connection->clientName,
|
||||
'user_id' => $connection->userId,
|
||||
])->find();
|
||||
$client->update(['is_lock'=>1,'lock_password'=>$lock_password,'lock_time'=>date('Y-m-d H:i:s')]);
|
||||
// 锁定屏幕
|
||||
$connection->send(json_encode(['event'=>'LOCK_CLIENT_SCREEN']));
|
||||
if($client) {
|
||||
$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']));
|
||||
|
||||
SysUserClientLog::create([
|
||||
'event' => 'UNLOCK',
|
||||
'message'=> "A. 锁定客户端",
|
||||
'data' => json_encode(['inputPass'=> $lock_password]),
|
||||
'create_time' => date('Y-m-d H:i:s'),
|
||||
'client_data_id'=> $client['id']
|
||||
]);
|
||||
SysUserClientLog::create([
|
||||
'event' => 'UNLOCK',
|
||||
'message'=> "A. 锁定客户端",
|
||||
'data' => json_encode(['inputPass'=> $lock_password]),
|
||||
'create_time' => date('Y-m-d H:i:s'),
|
||||
'client_data_id'=> $client['id']
|
||||
]);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user