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