Commit e5a6b7a6 authored by zhuwei's avatar zhuwei

1

parent 07327efe
......@@ -303,7 +303,7 @@ class StoreFee extends Basic
$store_field = 'id,store_name';
$store_result = $m_store->getStore($conditions, $store_field);
if($store_result)
if(!$store_result)
return $this->response("101", "成功",[]);
return $this->response("200", "成功",$store_result);
......
......@@ -267,6 +267,7 @@ class AStore extends BaseModel
/**
* 获取门店
* @param $params
* @param $field
* @return false|\PDOStatement|string|\think\Collection
*/
public function getStore($params,$field)
......@@ -275,7 +276,6 @@ class AStore extends BaseModel
->field($field)
->where($params)
->select();
//echo Db::table($this->table)->getLastSql();
//dump($this->getLastSql());
return $result;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment