Selaa lähdekoodia

支付成功页

lizhen_gitee 2 vuotta sitten
vanhempi
commit
78c96fc439
1 muutettua tiedostoa jossa 5 lisäystä ja 1 poistoa
  1. 5 1
      application/index/controller/Recharge.php

+ 5 - 1
application/index/controller/Recharge.php

@@ -28,6 +28,10 @@ class Recharge extends Frontend
         return $this->view->fetch();
     }
 
+    public function recharge_success(){
+        $this->success('支付成功','/index/recharge/index');
+    }
+
     //创建订单
     public function recharge_pc(){
 
@@ -117,7 +121,7 @@ class Recharge extends Frontend
             // 'amount'       => 0.01,
             'method'       => $payment_method,
             '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);