This commit is contained in:
root 2020-01-12 02:13:27 +08:00
parent 32795cf541
commit e3916aaa06

View File

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