瀏覽代碼

'循环时间调整'

Ethan 6 年之前
父節點
當前提交
0e635437ef
共有 1 個文件被更改,包括 3 次插入3 次删除
  1. 3 3
      vendor/GatewayWorker_windows/Applications/whisper/Events.php

+ 3 - 3
vendor/GatewayWorker_windows/Applications/whisper/Events.php

@@ -99,7 +99,7 @@ class Events
 
 
         // 检查对话时效给出.
-        Timer::add(3, function () {
+        Timer::add(60, function () {
             // 查询对话时效设置.
             $systemConfigData = self::$db->query("SELECT `systemconfig_data`,`systemconfig_enName`,`systemconfig_content` FROM `ws_systemconfig`");
             foreach ($systemConfigData as $k => $v) {
@@ -154,11 +154,11 @@ class Events
             foreach ($chatLog as $k => $v) {
                 $toWho = substr($v['to_id'], 0, 2);
                 // 如果对话为客服的最后一次对话且时间小于设定时间则结束工单.
-                if ($toWho != 'KF' && $v['time_line'] <= $overtime) {
+                if ($v['time_line'] <= $overtime) {
                     $found_key = array_search($v['servicelog_id'], array_column($serviceLog, 'servicelog_id'));
                     self::serverClose($serviceLog[$found_key]['client_id'], $v['servicelog_id']);
                     // 如果对话为客服的最后一次对话且时间小于设定时间前一分钟则给出提示.
-                } elseif ($toWho != 'KF' && $v['time_line'] <= $setOvertime) {
+                } elseif ($v['time_line'] <= $setOvertime) {
                     $chat_message = [
                         'message_type' => 'overtime',
                         'data' => [