xingzai hace 10 meses
padre
commit
8b2398f845
Se han modificado 1 ficheros con 5 adiciones y 1 borrados
  1. 5 1
      controllers/activity.go

+ 5 - 1
controllers/activity.go

@@ -2552,7 +2552,11 @@ func (this *ActivityController) Check() {
 		for _, v := range resp.GoodsList {
 		for _, v := range resp.GoodsList {
 			resp.PopupPriceMsg += v.PopupPriceMsg //价格弹窗信息
 			resp.PopupPriceMsg += v.PopupPriceMsg //价格弹窗信息
 		}
 		}
-		resp.IsShowWxPay = utils.IS_SHOW_WX_PAY                                                      //是否展示微信支付按钮
+		activtyPayTotal := services.GetCygxOrderVirtualAssetdCountTotal(user.Mobile, activityId) // 如果是点数不够的人买了付费活动,取消报名,在报名,不弹付费按钮
+		if activtyPayTotal > 0 {
+			resp.IsShowWxPay = utils.IS_SHOW_WX_PAY
+		}
+		//是否展示微信支付按钮
 		resp.IsCompanyApply = services.GetUserApplyRecordCountByCompanyIdPay(user.CompanyId)         //获取客户是否有过历史申请记录
 		resp.IsCompanyApply = services.GetUserApplyRecordCountByCompanyIdPay(user.CompanyId)         //获取客户是否有过历史申请记录
 		resp.IsNeedBusinessCard = services.GetCygxUserBusinessCardCount(user.UserId, user.CompanyId) //是否需要上传名片
 		resp.IsNeedBusinessCard = services.GetCygxUserBusinessCardCount(user.UserId, user.CompanyId) //是否需要上传名片
 	}
 	}