|
@@ -59,13 +59,14 @@ func (this *ParamInfo) SetAreaByOneProvince() (b bool) {
|
|
|
}
|
|
|
areas = append(areas, qutil.ObjArrToStringArr(area)...)
|
|
|
}
|
|
|
+ setMap := map[string]interface{}{
|
|
|
+ "o_jy.i_newfree": 1, //老免费用户=>新订阅设置页面 20211122
|
|
|
+ }
|
|
|
if len(areas) == 1 {
|
|
|
- if db.Mgo.UpdateById("user", this.UserId, map[string]interface{}{"$set": map[string]interface{}{
|
|
|
- "o_jy.o_area": areas, //设置地区
|
|
|
- "o_jy.i_newfree": 1, //老免费用户=>新订阅设置页面 20211122
|
|
|
- }}) {
|
|
|
- jy.ClearBigVipUserPower(this.UserId)
|
|
|
- }
|
|
|
+ setMap["o_jy.o_area"] = areas //设置地区
|
|
|
+ }
|
|
|
+ if db.Mgo.UpdateById("user", this.UserId, map[string]interface{}{"$set": setMap}) {
|
|
|
+ jy.ClearBigVipUserPower(this.UserId)
|
|
|
}
|
|
|
}
|
|
|
return b
|