优化count方法

This commit is contained in:
evoxwht 2023-05-24 15:01:06 +08:00
parent eb94510941
commit 6cf018c1cf

View File

@ -96,7 +96,7 @@ class StoreServiceDao extends BaseDao
* @email 442384644@qq.com
* @date 2023/05/10
*/
public function count($where = [], $search = true)
public function count(array $where = [], $search = true)
{
return $this->search($where, false)->when(isset($where['noId']), function ($query) use ($where) {
$query->whereNotIn('uid', $where['noId']);