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