浏览代码

字段修改

WH01243 2 年之前
父节点
当前提交
331fd4d4b8
共有 1 个文件被更改,包括 3 次插入4 次删除
  1. 3 4
      jyBXSubscribe/rpc/model/service/pushSet.go

+ 3 - 4
jyBXSubscribe/rpc/model/service/pushSet.go

@@ -104,8 +104,10 @@ func (this *PushSetService) Find() map[string]*bxsubscribe.PushSet {
 	}
 	fool, o_subset := pushSetMontage(o_pushset["o_subset"], "o_subset", powerData, ShowWx)
 	if fool {
+		o_subset.INomsgtip = common.Int64All(common.If(o_pushset["i_nomsgtip"] == nil, 1, o_pushset["i_nomsgtip"]))
 		pushSet["o_subset"] = o_subset
 	}
+
 	fool, o_week_report := pushSetMontage(o_pushset["o_week_report"], "o_week_report", powerData, ShowWx)
 	if fool {
 		pushSet["o_week_report"] = o_week_report
@@ -130,7 +132,7 @@ func (this *PushSetService) Find() map[string]*bxsubscribe.PushSet {
 	if fool {
 		pushSet["o_follow_ent"] = o_follow_ent
 	}
-	pushSet["i_nomsgtip"] = common.Int64All(common.If(o_pushset["i_nomsgtip"] == nil, 1, o_pushset["i_nomsgtip"]))
+
 	return pushSet
 }
 func pushSetMontage(in interface{}, name string, powerData *pb.CheckResp, ShowWx bool) (bool, *bxsubscribe.PushSet) {
@@ -157,7 +159,6 @@ func pushSetMontage(in interface{}, name string, powerData *pb.CheckResp, ShowWx
 				IMailpush: common.Int64All(common.If((*data)["i_mailpush"] == nil, 0, (*data)["i_mailpush"])),
 				IRatemode: 2,
 				IsWxShow:  1,
-				INomsgtip: common.Int64All(common.If((*data)["i_nomsgtip"] == nil, 1, (*data)["i_nomsgtip"])),
 			}
 		} else {
 			if data == nil || len(*data) == 0 {
@@ -168,7 +169,6 @@ func pushSetMontage(in interface{}, name string, powerData *pb.CheckResp, ShowWx
 					IMailpush: 0,
 					IRatemode: 2,
 					IsWxShow:  1,
-					INomsgtip: 1,
 				}
 			} else {
 				returnData = &bxsubscribe.PushSet{
@@ -178,7 +178,6 @@ func pushSetMontage(in interface{}, name string, powerData *pb.CheckResp, ShowWx
 					IMailpush: common.Int64All(common.If((*data)["i_mailpush"] == nil, 0, (*data)["i_mailpush"])),
 					IRatemode: common.Int64All(common.If((*data)["i_ratemode"] == nil, 2, (*data)["i_ratemode"])),
 					IsWxShow:  1,
-					INomsgtip: common.Int64All(common.If((*data)["i_nomsgtip"] == nil, 1, (*data)["i_nomsgtip"])),
 				}
 				if common.Int64All((*data)["i_ratemode"]) == 5 {
 					returnData.ATimes = []string{"14:00"}