Browse Source

'修改发送时间间隔'

Ethan 6 years ago
parent
commit
fb0eac39e0
1 changed files with 2 additions and 4 deletions
  1. 2 4
      vendor/GatewayWorker_windows/Applications/whisper/Events.php

+ 2 - 4
vendor/GatewayWorker_windows/Applications/whisper/Events.php

@@ -688,7 +688,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,
@@ -1280,7 +1279,6 @@ class Events
                     'evaluateCount' => $evaluateCount,
                 ]
             ];
-            print_r($chat_message);
             Gateway::sendToClient($v, json_encode($chat_message, 256));
         }
     }
@@ -1523,7 +1521,7 @@ class Events
             });
 
             // 管理员实时监控.
-            Timer::add(6, function () {
+            Timer::add(60, function () {
                 // 获取在线管理员
                 $adminList = self::$redis->smembers('adminList');
                 if ($adminList) {
@@ -1532,7 +1530,7 @@ class Events
             });
 
             // 检查对话时效给出.
-            Timer::add(6, function () {
+            Timer::add(60, function () {
                 self::overTime();
             });