WH01243 2 år sedan
förälder
incheckning
4fbe31d7e4
1 ändrade filer med 10 tillägg och 2 borttagningar
  1. 10 2
      jyBXSubscribe/rpc/model/service/pushSet.go

+ 10 - 2
jyBXSubscribe/rpc/model/service/pushSet.go

@@ -24,9 +24,16 @@ func (this *PushSetService) Update(item, setType, pushType string, ratemode, pus
 	set := map[string]interface{}{}
 	switch setType {
 	case "pushRoute":
-		set = map[string]interface{}{
-			fmt.Sprintf("o_pushset.%s.%s", item, pushType): common.IntAll(pushValue),
+		if pushType == "i_nomsgtip" {
+			set = map[string]interface{}{
+				fmt.Sprintf("o_pushset.%s", pushType): common.IntAll(pushValue),
+			}
+		} else {
+			set = map[string]interface{}{
+				fmt.Sprintf("o_pushset.%s.%s", item, pushType): common.IntAll(pushValue),
+			}
 		}
+
 		break
 	case "a_times":
 		if ratemode == 2 {
@@ -123,6 +130,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) {