From e3916aaa06065a5b597688a7af31d5c410d5d0c7 Mon Sep 17 00:00:00 2001 From: root Date: Sun, 12 Jan 2020 02:13:27 +0800 Subject: [PATCH] update --- app/Http/Controllers/OrderController.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/Http/Controllers/OrderController.php b/app/Http/Controllers/OrderController.php index 89f052b7..3b622e6e 100755 --- a/app/Http/Controllers/OrderController.php +++ b/app/Http/Controllers/OrderController.php @@ -346,10 +346,9 @@ class OrderController extends Controller abort(500, '支付网关请求失败'); } - if (!Cache::put($source['id'], $order->trade_no)) { + if (!Cache::put($source['id'], $order->trade_no, 3600) { abort(500, '订单创建失败'); } - Redis::expire($source['id'], 3600); return $source['redirect']['url']; }