Browse Source

支持选解方式

zengminguo 2 years ago
parent
commit
c264ed7613
1 changed files with 7 additions and 3 deletions
  1. 7 3
      src/User.js

+ 7 - 3
src/User.js

@@ -133,11 +133,15 @@ export default class User {
     socket.on('META', (req) => {
       // console.log(`Got META message : \n\t${JSON.stringify(req)}`)
       let sql = req.data.sql
-      let bUpdateOverSpeed = false
+      let bUpdateSettings = false
       //设置此字段为超速,server通知采集应用新的配置信息
       if (sql.indexOf('dat_setting') != -1 && sql.indexOf('over_speed') != -1)
       {
-        bUpdateOverSpeed = true
+        bUpdateSettings = true
+      }
+      if (sql.indexOf('dat_map_zhurong') != -1 && sql.indexOf('solution') != -1)
+      {
+        bUpdateSettings = true
       }
       req = Utils.toJson(req)
       if (!req) {
@@ -147,7 +151,7 @@ export default class User {
 
       if (socket.auth) {
         this.meta.dispatch(this.socket, req)
-        if (bUpdateOverSpeed)
+        if (bUpdateSettings)
         {
           let message = {
             cmd: 'setting',