This commit is contained in:
root 2020-01-12 02:16:05 +08:00
parent 7d7cef5f37
commit fb0ebea836

View File

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