From f5db44366857126d6e83b3012df220d1b42574a7 Mon Sep 17 00:00:00 2001 From: root Date: Tue, 31 Dec 2019 15:53:27 +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 fb43bb68..d4c32c43 100755 --- a/app/Http/Controllers/OrderController.php +++ b/app/Http/Controllers/OrderController.php @@ -68,7 +68,7 @@ class OrderController extends Controller abort(500, '该订阅无法续费,请更换其他订阅'); } - if (!(int)$plan[$request->input('cycle')]) { + if (empty($plan[$request->input('cycle')])) { abort(500, '该订阅周期无法进行购买,请选择其他周期'); }