From 755c78621ab9270320d9c3fd4b2f8696d7d3672b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=B9=E6=99=AF=E7=AB=8B?= Date: Fri, 14 Apr 2017 12:47:14 +0800 Subject: [PATCH] =?UTF-8?q?[=E6=9B=B4=E6=96=B0]=E4=BF=AE=E6=94=B9=E5=BE=AE?= =?UTF-8?q?=E4=BF=A1=E6=94=AF=E4=BB=98=E6=B5=8B=E8=AF=95=E9=80=80=E6=AC=BE?= =?UTF-8?q?=E6=93=8D=E4=BD=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/wechat/controller/Config.php | 2 +- application/wechat/view/config.pay.html | 7 ++++--- 2 files changed, 5 insertions(+), 4 deletions(-) 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; } }); });