wangshan 3 vuotta sitten
vanhempi
commit
bf7fb91c33
1 muutettua tiedostoa jossa 4 lisäystä ja 1 poistoa
  1. 4 1
      src/jfw/modules/publicapply/src/subscribe/entity/entity.go

+ 4 - 1
src/jfw/modules/publicapply/src/subscribe/entity/entity.go

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