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