Browse Source

no message

xingzai 1 year ago
parent
commit
4d543e58fa
1 changed files with 3 additions and 1 deletions
  1. 3 1
      services/activity_signup.go

+ 3 - 1
services/activity_signup.go

@@ -104,7 +104,9 @@ func CheckActivityPoints(activityInfo *models.ActivityDetail, wxUser *models.WxU
 			return
 		}
 
-		if companyPointsNum-userPointsNum < 0 {
+		activtyPayTotal := GetCygxOrderVirtualAssetdCountTotal(wxUser.Mobile, activityInfo.ActivityId) // 判断用户是否购买单场活动
+
+		if companyPointsNum-userPointsNum < 0 && activtyPayTotal == 0 {
 			checkPoints = false
 			var popupPriceMsg string
 			if utils.IS_SHOW_WX_PAY {