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, '该订阅周期无法进行购买,请选择其他周期'); }