mirror of
https://gitee.com/zoujingli/ThinkAdmin.git
synced 2025-04-06 03:58:04 +08:00
[更新]增加微信支付测试功能
This commit is contained in:
parent
801cd99a4b
commit
2b5a896725
@ -105,6 +105,7 @@
|
||||
if (ret.code === 1 || ret.code === 2) {
|
||||
if (ret.code === 2) {
|
||||
ret.url = '__STATIC__/theme/default/img/wechat/qrc_payed.jpg';
|
||||
timer && window.clearInterval(timer), timer = null;
|
||||
}
|
||||
if (isShow) {
|
||||
$('.pay-qrc-test').attr('src', ret.url)
|
||||
@ -116,7 +117,7 @@
|
||||
+ '<p class="refund-qrc-test"><a class="btn btn-xs btn-warning">退款测试</a></p>',
|
||||
end: function () {
|
||||
isShow = false;
|
||||
timer && window.clearInterval(timer);
|
||||
timer && window.clearInterval(timer), timer = null;
|
||||
},
|
||||
success: function (layero, index) {
|
||||
isShow = true;
|
||||
@ -128,6 +129,7 @@
|
||||
return false;
|
||||
});
|
||||
}
|
||||
|
||||
$('[data-pay-test]').on('click', payTest);
|
||||
});
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user