xingzai 10 miesięcy temu
rodzic
commit
a33b4232bf
1 zmienionych plików z 2 dodań i 2 usunięć
  1. 2 2
      services/activity.go

+ 2 - 2
services/activity.go

@@ -1325,13 +1325,13 @@ func GetActivityDetailUserPower(user *models.WxUserItem, activityInfo *models.Ac
 	if (!activityInfo.IsResearchPoints && activityInfo.IsLimitPeople == 0) || activityInfo.YidongActivityId != "" { //易董的活动 或者(不扣点且不限制人数)走月卡日卡逻辑
 		//用户是否持有有效卡片
 		userCardTotal := GetCygxOrderUserCardTotal(user.Mobile)
-		if userCardTotal == 1 {
+		if userCardTotal > 0 {
 			havePower = true
 			return
 		}
 	} else {
 		activtyPayTotal := GetCygxOrderVirtualAssetdCountTotal(user.Mobile, activityId)
-		if activtyPayTotal == 1 {
+		if activtyPayTotal > 0 {
 			havePower = true
 			return
 		}