|
@@ -111,20 +111,20 @@ func pushSetMontage(in interface{}, name string, powerData *pb.CheckResp) (bool,
|
|
|
case "o_subset":
|
|
|
if data == nil || len(*data) == 0 {
|
|
|
returnData = &bxsubscribe.PushSet{
|
|
|
- ATimes: a_times,
|
|
|
+ ATimes: []string{"09:00"},
|
|
|
IApppush: 1,
|
|
|
IWxpush: 1,
|
|
|
IMailpush: 0,
|
|
|
- IRatemode: 5,
|
|
|
+ IRatemode: 2,
|
|
|
IsWxShow: 1,
|
|
|
}
|
|
|
} else {
|
|
|
returnData = &bxsubscribe.PushSet{
|
|
|
- ATimes: a_times,
|
|
|
+ ATimes: common.If((*data)["i_ratemode"] == nil, []string{"09:00"}, a_times).([]string),
|
|
|
IApppush: common.Int64All(common.If((*data)["i_apppush"] == nil, 1, (*data)["i_apppush"])),
|
|
|
IWxpush: common.Int64All(common.If((*data)["i_wxpush"] == nil, 1, (*data)["i_wxpush"])),
|
|
|
IMailpush: common.Int64All(common.If((*data)["i_mailpush"] == nil, 0, (*data)["i_mailpush"])),
|
|
|
- IRatemode: common.Int64All(common.If((*data)["i_ratemode"] == nil, 5, (*data)["i_ratemode"])),
|
|
|
+ IRatemode: common.Int64All(common.If((*data)["i_ratemode"] == nil, 2, (*data)["i_ratemode"])),
|
|
|
IsWxShow: 1,
|
|
|
}
|
|
|
}
|
|
@@ -232,6 +232,7 @@ func (this *PushSetService) SetUser(mail string) (bool, string) {
|
|
|
update = IC.Mgo.Update(util.ENTUSER, map[string]interface{}{"i_entid": this.EntId, "i_userid": this.EntUserId}, map[string]interface{}{
|
|
|
"$set": set,
|
|
|
}, true, false)
|
|
|
+ IC.MainMysql.UpdateOrDeleteBySql(`update entniche_user set mail=? where id=? and ent_id=?`, mail, this.EntUserId, this.EntId)
|
|
|
}
|
|
|
return update, ""
|
|
|
}
|