diff --git a/application/wechat/controller/Config.php b/application/wechat/controller/Config.php index d7ff0cf11..d73454e70 100644 --- a/application/wechat/controller/Config.php +++ b/application/wechat/controller/Config.php @@ -95,7 +95,7 @@ class Config extends BasicAdmin { $refund_no = DataService::createSequence(10, 'wechat-pay-test'); if (false !== PayService::putWechatRefund($pay, $order_no, 1, $refund_no)) { session('pay-test-order-no', null); - $this->success('操作退款成功!', ''); + $this->success('测试退款操作成功,请查看微信通知!', ''); } $this->error("操作退款失败,{$pay->errMsg}[{$pay->errCode}]"); break; diff --git a/application/wechat/view/config.pay.html b/application/wechat/view/config.pay.html index c88fb710e..b8ae3b611 100644 --- a/application/wechat/view/config.pay.html +++ b/application/wechat/view/config.pay.html @@ -98,7 +98,7 @@ var isShow = false; var timer = null; - var layIndex =0; + var layIndex = 0; /*! 支付测试动作 */ function payTest() { $.form.load('{:url("pay")}?action=payqrc', {}, 'get', function (ret) { @@ -138,8 +138,9 @@ $.form.load('{:url("pay")}?action=refund', {}, 'get', function (ret) { if (ret.code === 1) { timer && window.clearInterval(timer), timer = null; - $.msg.close(layIndex); - return $.msg.success(ret.msg, 3), false; + return $.msg.success(ret.msg, 3, function () { + layer.close(layIndex); + }), false; } }); });