diff --git a/application/plugins/view/wallet/public/nav.html b/application/plugins/view/wallet/public/nav.html index 10d010641cf749edf24a9def639fbbe6983114c1..df413dee3379c2da7b6079ee2a5d101b2d0f51c4 100755 --- a/application/plugins/view/wallet/public/nav.html +++ b/application/plugins/view/wallet/public/nav.html @@ -78,7 +78,7 @@ ×
-
+

充值单号:...

充值金额:...

@@ -136,19 +136,4 @@ function PluginsRechargeBack(e) Prompt(e.msg); } } - -/** - * 支付回调 - */ -function PluginsRechargePayBack(e) -{ - if(e.code == 0) - { - window.location.href = e.data; - } else { - $('form.form-validation-plugins-recharge-popup').find('button[type="submit"]').button('reset'); - $.AMUI.progress.done(); - Prompt(e.msg); - } -} \ No newline at end of file diff --git a/application/plugins/wallet/Recharge.php b/application/plugins/wallet/Recharge.php index f975fd272686249ba4e1a717dc4c9f1d1c530d97..05ff5868fc4ba74f315be1a5c39d9e3ca0329274 100755 --- a/application/plugins/wallet/Recharge.php +++ b/application/plugins/wallet/Recharge.php @@ -117,7 +117,14 @@ class Recharge extends Common { // 用户 $params['user'] = $this->user; - return PayService::Pay($params); + $ret = PayService::Pay($params); + if($ret['code'] == 0) + { + return redirect($ret['data']); + } else { + $this->assign('msg', $ret['msg']); + return $this->fetch('public/tips_error'); + } } /**