From b7f37bbe63d886921aaabacf3a3f7cf60cbe95f1 Mon Sep 17 00:00:00 2001 From: root Date: Sat, 21 Dec 2019 00:01:11 +0800 Subject: [PATCH] update --- app/Http/Controllers/Guest/OrderController.php | 5 ----- app/Http/Controllers/OrderController.php | 4 ++-- routes/api.php | 1 - 3 files changed, 2 insertions(+), 8 deletions(-) diff --git a/app/Http/Controllers/Guest/OrderController.php b/app/Http/Controllers/Guest/OrderController.php index bfe9739f..2b17f8e9 100644 --- a/app/Http/Controllers/Guest/OrderController.php +++ b/app/Http/Controllers/Guest/OrderController.php @@ -101,9 +101,4 @@ class OrderController extends Controller abort(500, 'event is not support'); } } - - public function stripeReturn (Request $request) { - Log::info('stripeReturnData: ' . json_encode($request->input())); - header('Location:' . config('v2board.app_url', env('APP_URL')) . '/#/dashboard'); - } } diff --git a/app/Http/Controllers/OrderController.php b/app/Http/Controllers/OrderController.php index 6aa0e87e..91255425 100755 --- a/app/Http/Controllers/OrderController.php +++ b/app/Http/Controllers/OrderController.php @@ -225,7 +225,7 @@ class OrderController extends Controller 'currency' => 'hkd', 'type' => 'alipay', 'redirect' => [ - 'return_url' => url('/api/v1/guest/order/stripeReturn') + 'return_url' => config('v2board.app_url', env('APP_URL')) . '/#/order' ] ]); if (!$source['redirect']['url']) { @@ -250,7 +250,7 @@ class OrderController extends Controller 'currency' => 'hkd', 'type' => 'wechat', 'redirect' => [ - 'return_url' => url('/api/v1/guest/order/stripeReturn') + 'return_url' => config('v2board.app_url', env('APP_URL')) . '/#/order' ] ]); if (!$source['wechat']['qr_code_url']) { diff --git a/routes/api.php b/routes/api.php index 81941f63..e0c12c0c 100755 --- a/routes/api.php +++ b/routes/api.php @@ -113,7 +113,6 @@ Route::prefix('v1') // Order Route::post('order/alipayNotify', 'Guest\\OrderController@alipayNotify'); Route::post('order/stripeNotify', 'Guest\\OrderController@stripeNotify'); - Route::get ('order/stripeReturn', 'Guest\\OrderController@stripeReturn'); }); // Client Route::prefix('client')