diff --git a/app/Http/Controllers/OrderController.php b/app/Http/Controllers/OrderController.php index 90b5f322..52d2fb41 100755 --- a/app/Http/Controllers/OrderController.php +++ b/app/Http/Controllers/OrderController.php @@ -68,7 +68,7 @@ class OrderController extends Controller abort(500, '该订阅无法续费,请更换其他订阅'); } - if (empty($plan[$request->input('cycle')])) { + if ($plan[$request->input('cycle')] == NULL) { abort(500, '该订阅周期无法进行购买,请选择其他周期'); }