Преглед на файлове

wip:会员状态取值错误

wangkaiyue преди 2 години
родител
ревизия
05ccc4c29b
променени са 1 файла, в които са добавени 2 реда и са изтрити 2 реда
  1. 2 2
      entity/power/power.go

+ 2 - 2
entity/power/power.go

@@ -90,10 +90,10 @@ func HasAheadPower(userId string) bool {
 	//无缓存
 	res, _ := public.MQFW.FindById("user", userId, `{"l_vip_starttime":1,"i_vip_status":1,"i_member_status":1,"s_phone":1,"s_m_phone":1}`)
 	if res != nil && len(*res) > 0 {
-		if common.IntAll("i_member_status") > 0 {
+		if common.IntAll((*res)["i_member_status"]) > 0 {
 			return true
 		}
-		if common.IntAll("l_vip_starttime") > 0 && common.Int64All((*res)["l_vip_starttime"]) < vars.Config.ContextOldVipLimit {
+		if common.IntAll((*res)["i_vip_status"]) > 0 && common.Int64All((*res)["l_vip_starttime"]) < vars.Config.ContextOldVipLimit {
 			return true
 		}
 		//查询是否是商机管理付费用户