Kirin 4 年 前
コミット
d37e0f9fbd
1 ファイル変更1 行追加1 行削除
  1. 1 1
      app/controller/api/store/merchant/Merchant.php

+ 1 - 1
app/controller/api/store/merchant/Merchant.php

@@ -44,7 +44,7 @@ class Merchant extends BaseController
         [$page, $limit] = $this->getPage();
         $where = $this->request->params(['keyword', 'order', 'is_best', 'location', 'category_id']);
         if (!$where['location']) {
-            $where['location'] = $this->repository->lonlat();
+            $where['location'] = $this->request->lonlat();
         }
         return app('json')->success($this->repository->getList($where, $page, $limit, $this->userInfo));
     }