diff --git a/app/api/logic/LocalStoreLogic.php b/app/api/logic/LocalStoreLogic.php index 0a847bcc..1b105f09 100644 --- a/app/api/logic/LocalStoreLogic.php +++ b/app/api/logic/LocalStoreLogic.php @@ -216,7 +216,7 @@ class LocalStoreLogic extends Logic {var_dump($post); $s = ""; if(!empty($post['state'])){ - $s = "state = ".$post['state'].""; + $s = "state=". $post['state']; } $list = LocalGoodsStore::where(['user_id' => $post['user_id'], 'state' => 3]) ->where($s) @@ -245,7 +245,7 @@ class LocalStoreLogic extends Logic { $s = ""; if(!empty($post['state'])){ - $s = "state = ".$post['state'].""; + $s = "state=". $post['state']; } $list = LocalGoodsStore::where(['lstore_id' => $post['lstore_id'], 'state' => 3]) ->where($s)