Kirin 4 lat temu
rodzic
commit
8644593842
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      app/controller/api/store/merchant/Merchant.php

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

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