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])