liuxiaolong
2019-08-02 f94eb1b1e837ac4a40cd95ae8205302883f6a710
rm discovery
1个文件已修改
36 ■■■■ 已修改文件
service/EnableStatusControlService.go 36 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
service/EnableStatusControlService.go
@@ -2,13 +2,11 @@
import (
    "basic.com/dbapi.git"
    "basic.com/pubsub/protomsg.git"
    "encoding/json"
    "fmt"
    "strconv"
    "strings"
    "time"
    "webserver/discovery"
    "webserver/extend/config"
    "webserver/extend/esutil"
    "webserver/extend/logger"
@@ -119,23 +117,23 @@
    }
    if middle > 0 {
        logger.Debug("修改成功")
        if flag {//生效的
            discovery.AddDbMessage(&protomsg.EsPersonCacheChange{
                Type: protomsg.EsCacheChanged_T_DbTable,
                PersonId: "",
                TableId: id,
                Feature: "",
                Action: protomsg.DbAction_Insert,
            })
        } else {//失效的
            discovery.AddDbMessage(&protomsg.EsPersonCacheChange{
                Type: protomsg.EsCacheChanged_T_DbTable,
                PersonId: "",
                TableId: id,
                Feature: "",
                Action: protomsg.DbAction_Insert,
            })
        }
        //if flag {//生效的
        //    discovery.AddDbMessage(&protomsg.EsPersonCacheChange{
        //        Type: protomsg.EsCacheChanged_T_DbTable,
        //        PersonId: "",
        //        TableId: id,
        //        Feature: "",
        //        Action: protomsg.DbAction_Insert,
        //    })
        //} else {//失效的
        //    discovery.AddDbMessage(&protomsg.EsPersonCacheChange{
        //        Type: protomsg.EsCacheChanged_T_DbTable,
        //        PersonId: "",
        //        TableId: id,
        //        Feature: "",
        //        Action: protomsg.DbAction_Insert,
        //    })
        //}
        message = "修改成功"
    }
    return message