Эх сурвалжийг харах

feat: 免费用户逻辑调整

zhangxinlei1996 2 жил өмнө
parent
commit
7f32fb669e

+ 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 {
 					if common.Int64All((*eudata)["i_vip_status"]) > 0 {
+						logx.Info("======================>", o_entniche)
 						oBuyset := common.ObjToMap((*o_entniche)["o_buyset"])
 						oBuyset := common.ObjToMap((*o_entniche)["o_buyset"])
+						logx.Info("======================>", oBuyset)
 						areacount := common.Int64All((*oBuyset)["areacount"])
 						areacount := common.Int64All((*oBuyset)["areacount"])
+						logx.Info("======================>", oBuyset)
 						buyerclasscount := common.Int64All((*oBuyset)["buyerclasscount"])
 						buyerclasscount := common.Int64All((*oBuyset)["buyerclasscount"])
 						newcitys, _ := (*oBuyset)["newcitys"].([]interface{})
 						newcitys, _ := (*oBuyset)["newcitys"].([]interface{})
 						newcitysArr := common.InterfaceArrToint64Arr(newcitys)
 						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
 				free.IsFree = true
 			} else {
 			} else {
 				free.IsFree = false
 				free.IsFree = false