|
|
@@ -106,7 +106,7 @@ class Events
|
|
|
});
|
|
|
|
|
|
// 检查对话时效给出.
|
|
|
- Timer::add(60, function () {
|
|
|
+ Timer::add(6, function () {
|
|
|
self::overTime();
|
|
|
});
|
|
|
|
|
|
@@ -1789,7 +1789,7 @@ class Events
|
|
|
//$chatLog = self::$db->query("SELECT `servicelog_id`,MAX(`time_line`) FROM `ws_chat_log` WHERE ".$whereOr." group by `servicelog_id`");
|
|
|
$chatLog = self::$db->query("
|
|
|
select * from ws_chat_log as a where time_line=(
|
|
|
- select max(b.time_line) from ws_chat_log as b where a.servicelog_id = b.servicelog_id and (" . $whereOr . ") group by servicelog_id
|
|
|
+ select max(b.time_line) from ws_chat_log as b where a.servicelog_id = b.servicelog_id and from_id not like 'KF%' and (" . $whereOr . ") group by servicelog_id
|
|
|
)
|
|
|
");
|
|
|
$setOvertime = strtotime('-' . (self::$global->overtime['systemconfig_data'] - 60) . ' second');
|
|
|
@@ -1813,7 +1813,6 @@ class Events
|
|
|
];
|
|
|
Gateway::sendToClient($v['client_id'], json_encode($chat_message, 256));
|
|
|
}*/
|
|
|
-
|
|
|
// 无效会话关闭.如果没有说一句话.
|
|
|
if (!strlen(array_search($v['servicelog_id'], array_column($chatLog, 'servicelog_id')))) {
|
|
|
if ($v['start_time'] <= $unoperated) {
|