diff --git a/src/main/ui/static/templates/cbpay/yeepay/v1/gateway_jsapi_phone.js b/src/main/ui/static/templates/cbpay/yeepay/v1/gateway_jsapi_phone.js index 5da9823f0..75284216c 100644 --- a/src/main/ui/static/templates/cbpay/yeepay/v1/gateway_jsapi_phone.js +++ b/src/main/ui/static/templates/cbpay/yeepay/v1/gateway_jsapi_phone.js @@ -44,6 +44,10 @@ $(document).ready(function () { alert('金额不能为0'); return; } + if (product == null || product.length === 0) { + alert('请填写真实的商品名称'); + return; + } $('#commit-btn').addClass('hidden'); $('#commit-btn-loading').removeClass('hidden'); diff --git a/src/main/ui/static/templates/cbpay/yeepay/v2/gateway_jsapi_phone.js b/src/main/ui/static/templates/cbpay/yeepay/v2/gateway_jsapi_phone.js index cca183ee6..493a36560 100644 --- a/src/main/ui/static/templates/cbpay/yeepay/v2/gateway_jsapi_phone.js +++ b/src/main/ui/static/templates/cbpay/yeepay/v2/gateway_jsapi_phone.js @@ -79,6 +79,11 @@ $(document).ready(function () { return; } + if (product == null || product.length === 0) { + alert('请填写真实的商品名称'); + return; + } + $('#commit-btn').addClass('hidden'); $('#commit-btn-loading').removeClass('hidden');