|
@@ -224,8 +224,17 @@ func pushSetMontage(in interface{}, name string, powerData *pb.CheckResp, ShowWx
|
|
|
}
|
|
|
|
|
|
case "o_follow_project", "o_follow_ent":
|
|
|
- a_times = append(a_times, "实时推送")
|
|
|
- if data == nil || len(*data) == 0 {
|
|
|
+ if powerData.Free.IsFree {
|
|
|
+ returnData = &bxsubscribe.PushSet{
|
|
|
+ ATimes: []string{"实时推送"},
|
|
|
+ IApppush: common.Int64All(common.If((*data)["i_apppush"] == nil, 1, (*data)["i_apppush"])),
|
|
|
+ IWxpush: common.Int64All(common.If(ShowWx, 1, 0)),
|
|
|
+ IMailpush: common.Int64All(common.If((*data)["i_mailpush"] == nil, 0, (*data)["i_mailpush"])),
|
|
|
+ IRatemode: 1,
|
|
|
+ IsWxShow: 1,
|
|
|
+ }
|
|
|
+ } else if data == nil || len(*data) == 0 {
|
|
|
+ a_times = append(a_times, "实时推送")
|
|
|
returnData = &bxsubscribe.PushSet{
|
|
|
ATimes: a_times,
|
|
|
IApppush: 1,
|
|
@@ -240,14 +249,14 @@ func pushSetMontage(in interface{}, name string, powerData *pb.CheckResp, ShowWx
|
|
|
IApppush: common.Int64All(common.If((*data)["i_apppush"] == nil, 1, (*data)["i_apppush"])),
|
|
|
IWxpush: common.Int64All(common.If((*data)["i_wxpush"] == nil, common.If(ShowWx, 1, 0), common.If(ShowWx, (*data)["i_wxpush"], 0))),
|
|
|
IMailpush: common.Int64All(common.If((*data)["i_mailpush"] == nil, 0, (*data)["i_mailpush"])),
|
|
|
- IRatemode: 1,
|
|
|
+ IRatemode: common.Int64All(common.If((*data)["i_ratemode"] == nil, 1, (*data)["i_ratemode"])),
|
|
|
IsWxShow: 1,
|
|
|
}
|
|
|
}
|
|
|
case "o_newproject_forecast":
|
|
|
- a_times = append(a_times, "实时推送")
|
|
|
if powerData.Member.Status > 0 && power[9] {
|
|
|
if data == nil || len(*data) == 0 {
|
|
|
+ a_times = append(a_times, "实时推送")
|
|
|
returnData = &bxsubscribe.PushSet{
|
|
|
ATimes: a_times,
|
|
|
IApppush: 1,
|
|
@@ -262,7 +271,7 @@ func pushSetMontage(in interface{}, name string, powerData *pb.CheckResp, ShowWx
|
|
|
IApppush: common.Int64All(common.If((*data)["i_apppush"] == nil, 1, (*data)["i_apppush"])),
|
|
|
IWxpush: common.Int64All(common.If((*data)["i_wxpush"] == nil, common.If(ShowWx, 1, 0), common.If(ShowWx, (*data)["i_wxpush"], 0))),
|
|
|
IMailpush: common.Int64All(common.If((*data)["i_mailpush"] == nil, 0, (*data)["i_mailpush"])),
|
|
|
- IRatemode: 1,
|
|
|
+ IRatemode: common.Int64All(common.If((*data)["i_ratemode"] == nil, 1, (*data)["i_ratemode"])),
|
|
|
IsWxShow: 0,
|
|
|
}
|
|
|
}
|
|
@@ -270,9 +279,9 @@ func pushSetMontage(in interface{}, name string, powerData *pb.CheckResp, ShowWx
|
|
|
return false, nil
|
|
|
}
|
|
|
case "o_entinfo":
|
|
|
- a_times = append(a_times, "实时推送")
|
|
|
if powerData.Member.Status > 0 && power[12] {
|
|
|
if data == nil || len(*data) == 0 {
|
|
|
+ a_times = append(a_times, "实时推送")
|
|
|
returnData = &bxsubscribe.PushSet{
|
|
|
ATimes: a_times,
|
|
|
IApppush: 1,
|
|
@@ -287,7 +296,7 @@ func pushSetMontage(in interface{}, name string, powerData *pb.CheckResp, ShowWx
|
|
|
IApppush: common.Int64All(common.If((*data)["i_apppush"] == nil, 1, (*data)["i_apppush"])),
|
|
|
IWxpush: common.Int64All(common.If((*data)["i_wxpush"] == nil, common.If(ShowWx, 1, 0), common.If(ShowWx, (*data)["i_wxpush"], 0))),
|
|
|
IMailpush: common.Int64All(common.If((*data)["i_mailpush"] == nil, 0, (*data)["i_mailpush"])),
|
|
|
- IRatemode: 1,
|
|
|
+ IRatemode: common.Int64All(common.If((*data)["i_ratemode"] == nil, 1, (*data)["i_ratemode"])),
|
|
|
IsWxShow: 0,
|
|
|
}
|
|
|
}
|