From fb0ebea83680d34dc55169314023a8a6446a35e1 Mon Sep 17 00:00:00 2001 From: root Date: Sun, 12 Jan 2020 02:16:05 +0800 Subject: [PATCH] update --- app/Http/Controllers/OrderController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Http/Controllers/OrderController.php b/app/Http/Controllers/OrderController.php index b9cf1b9e..3e92ca72 100755 --- a/app/Http/Controllers/OrderController.php +++ b/app/Http/Controllers/OrderController.php @@ -370,7 +370,7 @@ class OrderController extends Controller if (!$source['wechat']['qr_code_url']) { abort(500, '支付网关请求失败'); } - if (!Cache::put($source['id'], $order->trade_no)) { + if (!Cache::put($source['id'], $order->trade_no, 3600)) { abort(500, '订单创建失败'); } return $source['wechat']['qr_code_url'];