|
@@ -103,9 +103,20 @@ func CheckActivityPoints(activityInfo *models.ActivityDetail, wxUser *models.WxU
|
|
|
err = errors.New("GetCompanyPoints, Err: " + e.Error())
|
|
|
return
|
|
|
}
|
|
|
+
|
|
|
if companyPointsNum-userPointsNum < 0 {
|
|
|
checkPoints = false
|
|
|
- popupMsg = "点数不足,若想报名,\n请联系对口销售充值"
|
|
|
+ var popupPriceMsg string
|
|
|
+ if utils.IS_SHOW_WX_PAY {
|
|
|
+ goodsList := GetGoodsInfoByActivity(activityInfo) //单场活动信息
|
|
|
+ for _, v := range goodsList {
|
|
|
+ popupPriceMsg = v.PopupPriceMsg //价格弹窗信息
|
|
|
+ }
|
|
|
+ popupMsg = "<div>点数不足,您可以通过单场付费 <span color=\"#D54941\">" + popupPriceMsg + "</span> 参与或者联系销售机构充值</div>"
|
|
|
+ } else {
|
|
|
+ popupMsg = "点数不足,若想报名,\n请联系对口销售充值"
|
|
|
+ }
|
|
|
+
|
|
|
}
|
|
|
companyPoints = fmt.Sprint(companyPointsNum)
|
|
|
activityPoints = fmt.Sprint(userPointsNum)
|