|
@@ -28,6 +28,10 @@ class Recharge extends Frontend
|
|
return $this->view->fetch();
|
|
return $this->view->fetch();
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ public function recharge_success(){
|
|
|
|
+ $this->success('支付成功','/index/recharge/index');
|
|
|
|
+ }
|
|
|
|
+
|
|
//创建订单
|
|
//创建订单
|
|
public function recharge_pc(){
|
|
public function recharge_pc(){
|
|
|
|
|
|
@@ -117,7 +121,7 @@ class Recharge extends Frontend
|
|
// 'amount' => 0.01,
|
|
// 'amount' => 0.01,
|
|
'method' => $payment_method,
|
|
'method' => $payment_method,
|
|
'notifyurl' => $this->request->root(true) . '/notify.php/paytype/'.$pay_type,
|
|
'notifyurl' => $this->request->root(true) . '/notify.php/paytype/'.$pay_type,
|
|
- 'returnurl' => $this->request->root(true) . '/index/recharge',
|
|
|
|
|
|
+ 'returnurl' => $this->request->root(true) . '/index/recharge_success',
|
|
];
|
|
];
|
|
$res = Service::submitOrder($params);
|
|
$res = Service::submitOrder($params);
|
|
|
|
|