瀏覽代碼

Merge branch 'mfyx_2.0' of http://8.136.199.33:3000/cxzhang/hongze_mfyx into debug

xingzai 1 年之前
父節點
當前提交
1072d3dd71
共有 1 個文件被更改,包括 3 次插入1 次删除
  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
 			return
 		}
 		}
 
 
-		if companyPointsNum-userPointsNum < 0 {
+		activtyPayTotal := GetCygxOrderVirtualAssetdCountTotal(wxUser.Mobile, activityInfo.ActivityId) // 判断用户是否购买单场活动
+
+		if companyPointsNum-userPointsNum < 0 && activtyPayTotal == 0 {
 			checkPoints = false
 			checkPoints = false
 			var popupPriceMsg string
 			var popupPriceMsg string
 			if utils.IS_SHOW_WX_PAY {
 			if utils.IS_SHOW_WX_PAY {