Browse Source

强制更新缓存

vali 6 years ago
parent
commit
a78b547ac7
1 changed files with 11 additions and 1 deletions
  1. 11 1
      vendor/GatewayWorker_windows/Applications/whisper/Events.php

+ 11 - 1
vendor/GatewayWorker_windows/Applications/whisper/Events.php

@@ -46,6 +46,7 @@ class Events
     const  SERVICELOG = 'SERVICELOG';            //工单信息
     const  SERVICELOG = 'SERVICELOG';            //工单信息
     const  WEBSOCKALLUSER = 'WEBSOCKALLUSER';          //所有连接
     const  WEBSOCKALLUSER = 'WEBSOCKALLUSER';          //所有连接
     const  KFRELONINFLAG = 'KFRELOGIN';                 //客服重登陆标示
     const  KFRELONINFLAG = 'KFRELOGIN';                 //客服重登陆标示
+    const  ADMINLIST = 'adminList';               //后台管理的连接
 
 
     /**
     /**
      * 进程启动后初始化数据库连接
      * 进程启动后初始化数据库连接
@@ -200,11 +201,20 @@ class Events
                 case 'cancelqueue':
                 case 'cancelqueue':
                     self::cancelqueue($message['data']);
                     self::cancelqueue($message['data']);
                     break;
                     break;
+                case 'updatecache':
+                    self::updatecache($client_id, $message['data']);
+                    break;
             }
             }
         }
         }
         return true;
         return true;
     }
     }
 
 
+    //强制更新缓存信息
+    public static function updatecache($client_id, $dataArray)
+    {
+        self::upsystemconfig();
+    }
+
     //用户取消排队
     //用户取消排队
     public static function cancelqueue($messageArray)
     public static function cancelqueue($messageArray)
     {
     {
@@ -1674,7 +1684,7 @@ class Events
             $serviceLog[$k]['allCount'] = $allCount; // 工单报警次数.
             $serviceLog[$k]['allCount'] = $allCount; // 工单报警次数.
         }
         }
 
 
-       // self::DebugOut([$serviceLog, $csdTime, $verifyReturnTime], 'systemMonitoring');
+        // self::DebugOut([$serviceLog, $csdTime, $verifyReturnTime], 'systemMonitoring');
 
 
         $chat_message = [
         $chat_message = [
             'message_type' => 'monitor',
             'message_type' => 'monitor',