|
|
@@ -691,7 +691,6 @@ class Events
|
|
|
Gateway::sendToClient($data['kf_client_id'], json_encode($del_message, 256));
|
|
|
// 查询工单会话总数.
|
|
|
$chatCount = self::$db->select('count(*) as count')->from('ws_chat_log')->where("servicelog_id=$servicelogId")->row();
|
|
|
- print_r($chatCount);
|
|
|
// 将数据存入数据库.
|
|
|
$updateServiceLogData = [
|
|
|
'status' => 2,
|
|
|
@@ -1283,7 +1282,6 @@ class Events
|
|
|
'evaluateCount' => $evaluateCount,
|
|
|
]
|
|
|
];
|
|
|
- print_r($chat_message);
|
|
|
Gateway::sendToClient($v, json_encode($chat_message, 256));
|
|
|
}
|
|
|
}
|
|
|
@@ -1526,7 +1524,7 @@ class Events
|
|
|
});
|
|
|
|
|
|
// 管理员实时监控.
|
|
|
- Timer::add(6, function () {
|
|
|
+ Timer::add(60, function () {
|
|
|
// 获取在线管理员
|
|
|
$adminList = self::$redis->smembers('adminList');
|
|
|
if ($adminList) {
|
|
|
@@ -1535,7 +1533,7 @@ class Events
|
|
|
});
|
|
|
|
|
|
// 检查对话时效给出.
|
|
|
- Timer::add(6, function () {
|
|
|
+ Timer::add(60, function () {
|
|
|
self::overTime();
|
|
|
});
|
|
|
|