浏览代码

Merge branch 'feature/v1.2.36_ws' of BaseService/userCenter into feature/v1.2.36

wangshan 11 月之前
父节点
当前提交
37bd46e7a8
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      entity/subscribe.go

+ 2 - 2
entity/subscribe.go

@@ -275,15 +275,15 @@ func (this *UserInfoReq) EntnicheSub() *map[string]interface{} {
 			"i_deptid": deptId,
 			"i_entid":  this.EntId,
 		})
-		log.Println(res_, "+++")
+		log.Println(res_, "+++", res)
 		if ok && res != nil && len(res_) > 0 {
 			oenitche, ok := (*res)["o_entniche"].(map[string]interface{})
 			if ok && oenitche != nil {
 				oenitche["a_buyerclass"] = res_["a_buyerclass"]
 				oenitche["a_items"] = res_["a_items"]
 				oenitche["o_area"] = res_["o_area"]
+				(*res)["o_entniche"] = oenitche
 			}
-			(*res)["o_entniche"] = oenitche
 		}
 	case 2:
 		res, _ = this.Mgo.FindOne("entniche_rule", map[string]interface{}{