Переглянути джерело

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
 		}
 		//查询是否是商机管理付费用户