diff --git a/app/controller/api/Auth.php b/app/controller/api/Auth.php index 93b79df6..94b27045 100644 --- a/app/controller/api/Auth.php +++ b/app/controller/api/Auth.php @@ -1293,7 +1293,7 @@ class Auth extends BaseController { [$page, $limit] = $this->getPage(); $queryBuilder = Db::name('Merchant')->where('status', 1)->where('is_del', 0)->where('street_id', $street_id); - $count = $queryBuilder->fetchSql((bool)$sql)->count(); + $count = $queryBuilder->count(); $list = $queryBuilder->setOption('field', [])->field(['mer_id', 'category_id', 'type_id', 'mer_name', 'area_id', 'street_id', 'village_id', 'mer_address', 'long', 'lat', 'create_time'])->order('mer_id', 'desc')->page($page, $limit)->fetchSql(false)->select(); return app('json')->success(compact('count', 'list')); }