|
@@ -118,12 +118,16 @@ func (l *GetSubSomeInfoLogic) GetSubSomeInfo(in *bxsubscribe.SomeInfoReq) (*bxsu
|
|
switch in.UserType {
|
|
switch in.UserType {
|
|
case SubFreeFlag:
|
|
case SubFreeFlag:
|
|
field = "o_jy"
|
|
field = "o_jy"
|
|
|
|
+ resp.Data.Subsetinfo.Areacount = 1 // 地区数量
|
|
case SubVipFlag:
|
|
case SubVipFlag:
|
|
field = "o_vipjy"
|
|
field = "o_vipjy"
|
|
|
|
+ resp.Data.Subsetinfo.Areacount = 1 // 后面查到再修改
|
|
case MemberFlag:
|
|
case MemberFlag:
|
|
field = "o_member_jy"
|
|
field = "o_member_jy"
|
|
|
|
+ resp.Data.Subsetinfo.Areacount = -1
|
|
case EntnicheFlag:
|
|
case EntnicheFlag:
|
|
field = "o_entniche"
|
|
field = "o_entniche"
|
|
|
|
+ resp.Data.Subsetinfo.Areacount = -1
|
|
}
|
|
}
|
|
data := IC.Compatible.Select(in.UserId, fmt.Sprintf(`{"%s":1,"i_ts_guide":1,"l_registedate":1}`, field))
|
|
data := IC.Compatible.Select(in.UserId, fmt.Sprintf(`{"%s":1,"i_ts_guide":1,"l_registedate":1}`, field))
|
|
if data != nil && len(*data) > 0 {
|
|
if data != nil && len(*data) > 0 {
|
|
@@ -137,7 +141,6 @@ func (l *GetSubSomeInfoLogic) GetSubSomeInfo(in *bxsubscribe.SomeInfoReq) (*bxsu
|
|
}
|
|
}
|
|
switch in.UserType {
|
|
switch in.UserType {
|
|
case SubFreeFlag:
|
|
case SubFreeFlag:
|
|
- resp.Data.Subsetinfo.Areacount = 1 // 地区数量
|
|
|
|
resp.Data.Subsetinfo.Key = freegetsubKey(subinfo)
|
|
resp.Data.Subsetinfo.Key = freegetsubKey(subinfo)
|
|
case SubVipFlag:
|
|
case SubVipFlag:
|
|
o_buyset := common.ObjToMap(subinfo["o_buyset"])
|
|
o_buyset := common.ObjToMap(subinfo["o_buyset"])
|
|
@@ -146,13 +149,11 @@ func (l *GetSubSomeInfoLogic) GetSubSomeInfo(in *bxsubscribe.SomeInfoReq) (*bxsu
|
|
}
|
|
}
|
|
resp.Data.Subsetinfo.Key = paygetsubKey(subinfo)
|
|
resp.Data.Subsetinfo.Key = paygetsubKey(subinfo)
|
|
case MemberFlag:
|
|
case MemberFlag:
|
|
- resp.Data.Subsetinfo.Areacount = -1
|
|
|
|
if common.Int64All(subinfo["i_areacount"]) > 0 {
|
|
if common.Int64All(subinfo["i_areacount"]) > 0 {
|
|
resp.Data.Subsetinfo.Areacount = common.Int64All(subinfo["i_areacount"]) // 单省版大会员
|
|
resp.Data.Subsetinfo.Areacount = common.Int64All(subinfo["i_areacount"]) // 单省版大会员
|
|
}
|
|
}
|
|
resp.Data.Subsetinfo.Key = paygetsubKey(subinfo)
|
|
resp.Data.Subsetinfo.Key = paygetsubKey(subinfo)
|
|
case EntnicheFlag:
|
|
case EntnicheFlag:
|
|
- resp.Data.Subsetinfo.Areacount = -1
|
|
|
|
resp.Data.Subsetinfo.Key = paygetsubKey(subinfo)
|
|
resp.Data.Subsetinfo.Key = paygetsubKey(subinfo)
|
|
}
|
|
}
|
|
}
|
|
}
|