|
@@ -984,7 +984,7 @@ func (ac *Action) Get_key() {
|
|
|
return
|
|
|
}
|
|
|
|
|
|
-//Update_key 修改关键词
|
|
|
+// Update_key 修改关键词
|
|
|
func (ac *Action) Update_key() {
|
|
|
entId := qutil.IntAll(ac.GetSession("entId"))
|
|
|
// entUserId := qutil.IntAll(ac.GetSession("entUserId"))
|
|
@@ -1390,10 +1390,10 @@ func (ac *Action) Get_pushset() {
|
|
|
delete(*res, "_id")
|
|
|
if (*res)["o_entniche"] != nil {
|
|
|
o_entniche := (*res)["o_entniche"].(map[string]interface{})
|
|
|
- data["ratemode"] = o_entniche["i_ratemode"]
|
|
|
- data["apppush"] = o_entniche["i_apppush"]
|
|
|
- data["mailpush"] = o_entniche["i_mailpush"]
|
|
|
- data["matchway"] = o_entniche["i_matchway"]
|
|
|
+ data["ratemode"] = qutil.If(o_entniche["i_ratemode"] == nil, 2, o_entniche["i_ratemode"])
|
|
|
+ data["apppush"] = qutil.If(o_entniche["i_apppush"] == nil, 1, o_entniche["i_apppush"])
|
|
|
+ data["mailpush"] = qutil.If(o_entniche["i_mailpush"] == nil, 0, o_entniche["i_mailpush"])
|
|
|
+ data["matchway"] = qutil.If(o_entniche["i_matchway"] == nil, 1, o_entniche["i_matchway"])
|
|
|
data["wxpush"] = qutil.If(o_entniche["i_wxpush"] == nil, 1, o_entniche["i_wxpush"])
|
|
|
} else {
|
|
|
data["ratemode"] = 2
|