leo 8 лет назад
Родитель
Сommit
5af36f67dd
2 измененных файлов с 3 добавлено и 3 удалено
  1. 2 2
      app/Http/Controllers/PaymentController.php
  2. 1 1
      routes/web.php

+ 2 - 2
app/Http/Controllers/PaymentController.php

@@ -87,12 +87,12 @@ class PaymentController extends Controller
         }
         return $result;
     }
-    public function return($request, $response, $args){
+    public function return(Request $req, $type){
     $money = $_GET['money'];
      echo "您已经成功支付 $money 元,正在跳转..";
      echo <<<HTML
 <script>
-location.href="/user/doiam";
+location.href="/user/payment";
 </script>
 HTML;
     return;

+ 1 - 1
routes/web.php

@@ -103,4 +103,4 @@ Route::group(['middleware' => ['user']], function() {
 });
 Route::post("/payment/query","PaymentController@query");
 Route::post("/payment/callback/{type}","PaymentController@callback");
-Route::post("/payment/return/{type}","PaymentController@return");
+Route::get("/payment/return/{type}","PaymentController@return");