From a7a5dba1048853b3c4ec3c6d5c2452c22a6f910f Mon Sep 17 00:00:00 2001 From: jianghanbo Date: Wed, 14 Aug 2024 15:07:12 +0800 Subject: [PATCH] =?UTF-8?q?=E6=A0=B8=E9=94=80=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- service/app/server/Orders.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/service/app/server/Orders.php b/service/app/server/Orders.php index 30d346e9..6fc43413 100644 --- a/service/app/server/Orders.php +++ b/service/app/server/Orders.php @@ -14,9 +14,9 @@ class Orders { { // 根据 OrdersModel::AllOssStatusSql[1] 进行判断 // ((os=1 and order_status=3) or (os=2 and order_status=4) or (os=3 and order_status=1)) - return $order->os == 1 && $order->order_status == 3 - || $order->os == 2 && $order->order_status == 4 - || $order->os == 3 && in_array($order->order_status, [1, 5]); + return ($order->os == 1 && $order->order_status == 3) + || ($order->os == 2 && $order->order_status == 4) + || ($order->os == 3 && in_array($order->order_status, [1, 5])); } /**