wangchuanjin 2 سال پیش
والد
کامیت
883f5c666c
1فایلهای تغییر یافته به همراه2 افزوده شده و 3 حذف شده
  1. 2 3
      service/power.go

+ 2 - 3
service/power.go

@@ -54,7 +54,7 @@ func (this *PowerService) Power(userid string, baseUserId, accountId, entId, pos
 	free := &entity.Free{}
 	userPower := entity.Power{}
 	cacheBl := false
-	if bytes, err := redis.GetBytes("newother", GetRedisName(positionId)); err == nil && bytes != nil {
+	if bytes, err := redis.GetBytes("newother", GetRedisName(positionId)); err == nil && bytes != nil && false {
 		if err := json.Unmarshal(*bytes, &userPower); err == nil {
 			cacheBl = true
 		}
@@ -197,7 +197,7 @@ func (this *PowerService) Power(userid string, baseUserId, accountId, entId, pos
 				}
 				//企业
 				edata, _ := this.Conn.MgoJy.FindOne("entniche_rule", map[string]interface{}{
-					"i_ent":    entId,
+					"i_entid":  entId,
 					"i_userid": entnicheUserId,
 					"i_type":   1, //0:商机管理 1:超级订阅/大会员
 				})
@@ -219,7 +219,6 @@ func (this *PowerService) Power(userid string, baseUserId, accountId, entId, pos
 							}
 						}
 					}
-
 					if common.Int64All((*eudata)["i_vip_status"]) > 0 {
 						oBuyset := common.ObjToMap((*o_entniche)["o_buyset"])
 						areacount := common.Int64All((*oBuyset)["areacount"])