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

feat: 免费用户逻辑调整

zhangxinlei1996 2 роки тому
батько
коміт
7f32fb669e
1 змінених файлів з 4 додано та 1 видалено
  1. 4 1
      service/power.go

+ 4 - 1
service/power.go

@@ -223,8 +223,11 @@ func (this *PowerService) Power(userid string, baseUserId, accountId, entId, pos
 						}
 					}
 					if common.Int64All((*eudata)["i_vip_status"]) > 0 {
+						logx.Info("======================>", o_entniche)
 						oBuyset := common.ObjToMap((*o_entniche)["o_buyset"])
+						logx.Info("======================>", oBuyset)
 						areacount := common.Int64All((*oBuyset)["areacount"])
+						logx.Info("======================>", oBuyset)
 						buyerclasscount := common.Int64All((*oBuyset)["buyerclasscount"])
 						newcitys, _ := (*oBuyset)["newcitys"].([]interface{})
 						newcitysArr := common.InterfaceArrToint64Arr(newcitys)
@@ -348,7 +351,7 @@ func (this *PowerService) Power(userid string, baseUserId, accountId, entId, pos
 					}
 				}
 			}
-			if vip.Status <= 0 && member.Status <= 0 && entniche.Status <= 0 {
+			if vip.Status <= 0 && member.Status <= 0 && (entniche.Status <= 0 || (entniche.Status > 0 && entniche.PowerSource == 1)) {
 				free.IsFree = true
 			} else {
 				free.IsFree = false