Browse Source

feat:p618 bxsubscribe 调整常量命名

fuwencai 7 months ago
parent
commit
b82106db1d

+ 2 - 2
jyBXSubscribe/rpc/internal/logic/getsubsomeinfologic.go

@@ -35,7 +35,7 @@ const (
 	SubVipFlag      = "vType"
 	MemberFlag      = "mType"
 	EntnicheFlag    = "eType"
-	tsGuidefinished = 1
+	tsGuideFinished = 1
 )
 
 // 获取订阅推送相关信息
@@ -158,7 +158,7 @@ func (l *GetSubSomeInfoLogic) GetSubSomeInfo(in *bxsubscribe.SomeInfoReq) (*bxsu
 			}
 			registedate := common.Int64All((*data)["l_registedate"])
 			if in.UserType == SubFreeFlag || registedate > IC.C.GuideRegistedate {
-				if common.Int64All((*data)["i_ts_guide"]) != tsGuidefinished { // 判断字段未完成
+				if common.Int64All((*data)["i_ts_guide"]) != tsGuideFinished { // 判断字段未完成
 					resp.Data.IsInTSguide = true
 				}
 			}

+ 2 - 2
jyBXSubscribe/rpc/internal/logic/savetsguidelogic.go

@@ -47,7 +47,7 @@ func (l *SaveTSGuideLogic) SaveTSGuide(in *bxsubscribe.SaveTSGuideReq) (*bxsubsc
 	data := IC.Compatible.Select(in.UserId, `{"i_ts_guide":1,"l_registedate":1,"o_member_jy":1}`)
 	if data != nil && len(*data) > 0 {
 		registedate := common.Int64All((*data)["l_registedate"])
-		if (in.UserType != SubFreeFlag && registedate < IC.C.GuideRegistedate) || common.Int64All((*data)["i_ts_guide"]) == tsGuidefinished {
+		if (in.UserType != SubFreeFlag && registedate < IC.C.GuideRegistedate) || common.Int64All((*data)["i_ts_guide"]) == tsGuideFinished {
 			// 已经设置过
 			return nil, errors.New("重复设置向导")
 		}
@@ -157,7 +157,7 @@ func (l *SaveTSGuideLogic) SaveTSGuide(in *bxsubscribe.SaveTSGuideReq) (*bxsubsc
 	}
 
 	updateMap[fmt.Sprintf(field, "l_modifydate")] = time.Now().Unix()
-	updateMap["i_ts_guide"] = tsGuidefinished
+	updateMap["i_ts_guide"] = tsGuideFinished
 	//  判断app提醒总开关是否打开  如果打开 我的订阅APP提醒初始值为“开启”状态。
 	if in.AppSwitch {
 		updateMap["o_pushset.o_subset.i_apppush"] = 1