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']; }