|
@@ -92,9 +92,9 @@ func EntnicheSub(entUserId, entId int64, types int64, mg mongodb.MongodbSim) *ma
|
|
})
|
|
})
|
|
if types == 2 {
|
|
if types == 2 {
|
|
if (*res)["o_entniche"] != nil {
|
|
if (*res)["o_entniche"] != nil {
|
|
- ojy := common.ObjToMap((*res)["o_jy"])
|
|
|
|
|
|
+ ojy := common.ObjToMap((*res)["o_entniche"])
|
|
object = ojy
|
|
object = ojy
|
|
- if (*ojy)["a_key"] != nil {
|
|
|
|
|
|
+ if _, ok := (*ojy)["a_key"]; ok {
|
|
akey := common.ObjArrToMapArr((*ojy)["a_key"].([]interface{}))
|
|
akey := common.ObjArrToMapArr((*ojy)["a_key"].([]interface{}))
|
|
(*object)["a_items"] = []map[string]interface{}{ //转换至和其它结构一致
|
|
(*object)["a_items"] = []map[string]interface{}{ //转换至和其它结构一致
|
|
map[string]interface{}{
|
|
map[string]interface{}{
|
|
@@ -102,7 +102,7 @@ func EntnicheSub(entUserId, entId int64, types int64, mg mongodb.MongodbSim) *ma
|
|
},
|
|
},
|
|
}
|
|
}
|
|
}
|
|
}
|
|
- if (*ojy)["o_area"] == nil {
|
|
|
|
|
|
+ if _, ok := (*ojy)["o_area"]; ok {
|
|
(*object)["o_area"] = map[string]interface{}{}
|
|
(*object)["o_area"] = map[string]interface{}{}
|
|
} else {
|
|
} else {
|
|
(*object)["o_area"] = (*ojy)["o_area"]
|
|
(*object)["o_area"] = (*ojy)["o_area"]
|