From b7dfeead7b4d83d519ae2f274a4ebfc94be416af Mon Sep 17 00:00:00 2001 From: xucong <850806214@qq.com> Date: Mon, 16 Sep 2024 22:38:03 +0800 Subject: [PATCH] =?UTF-8?q?1.=E6=9C=AC=E5=9C=B0=E7=94=9F=E6=B4=BB=E8=AE=A2?= =?UTF-8?q?=E5=8D=95=E5=88=97=E8=A1=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/api/logic/LocalStoreLogic.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/api/logic/LocalStoreLogic.php b/app/api/logic/LocalStoreLogic.php index 29513e0b..cef0225c 100644 --- a/app/api/logic/LocalStoreLogic.php +++ b/app/api/logic/LocalStoreLogic.php @@ -215,7 +215,7 @@ class LocalStoreLogic extends Logic public static function myOrderList($post) { $s = ""; - if($post['state']!=""){ + if(!empty($post['state'])){ $s = "state = ".$post['state'].""; } $list = LocalGoodsStore::where(['user_id' => $post['user_id'], 'state' => 3]) @@ -244,7 +244,7 @@ class LocalStoreLogic extends Logic public static function orderList($post) { $s = ""; - if($post['state']!=""){ + if(!empty($post['state'])){ $s = "state = ".$post['state'].""; } $list = LocalGoodsStore::where(['lstore_id' => $post['lstore_id'], 'state' => 3])