Parcourir la source

强制更新缓存

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