|
@@ -129,10 +129,12 @@ func (l *GetSubSomeInfoLogic) GetSubSomeInfo(in *bxsubscribe.SomeInfoReq) (*bxsu
|
|
|
if data != nil && len(*data) > 0 {
|
|
|
subinfo, b := (*data)[field].(map[string]interface{})
|
|
|
if b && subinfo != nil {
|
|
|
- area := subinfo["o_area"].(map[string]interface{})
|
|
|
- resp.Data.Subsetinfo.Area = common.MapToJson(area)
|
|
|
- district := subinfo["o_district"].(map[string]interface{})
|
|
|
- resp.Data.Subsetinfo.District = common.MapToJson(district)
|
|
|
+ if area, ok := subinfo["o_area"].(map[string]interface{}); ok {
|
|
|
+ resp.Data.Subsetinfo.Area = common.MapToJson(area)
|
|
|
+ }
|
|
|
+ if district, ok := subinfo["o_district"].(map[string]interface{}); ok {
|
|
|
+ resp.Data.Subsetinfo.District = common.MapToJson(district)
|
|
|
+ }
|
|
|
switch in.UserType {
|
|
|
case SubFreeFlag:
|
|
|
resp.Data.Subsetinfo.Areacount = 1 // 地区数量
|