Browse Source

Wesmiler 校企小程序 更新 6.23

wesmiler 3 years ago
parent
commit
a0b8f497d9
2 changed files with 2 additions and 1 deletions
  1. 1 0
      app/common/model/School.php
  2. 1 1
      app/store/model/School.php

+ 1 - 0
app/common/model/School.php

@@ -50,6 +50,7 @@ class School extends BaseModel
         // 排序条件
         // 排序条件
         $sort = $this->setQuerySort($param);
         $sort = $this->setQuerySort($param);
 
 
+        var_dump($sort);
         // 范围查询
         // 范围查询
         $field = '*';
         $field = '*';
         $lng = isset($param['longitude'])? $param['longitude'] : 0;
         $lng = isset($param['longitude'])? $param['longitude'] : 0;

+ 1 - 1
app/store/model/School.php

@@ -31,7 +31,7 @@ class School extends SchoolModel
     public function getList(array $param = [], int $listRows = 15)
     public function getList(array $param = [], int $listRows = 15)
     {
     {
         // 整理查询参数
         // 整理查询参数
-        $params = array_merge($param, ['sortType'=>'time']);
+        $params = array_merge($param,[]);
         // 获取商品列表
         // 获取商品列表
         $list = parent::getList($params, $listRows);
         $list = parent::getList($params, $listRows);
         if ($list->isEmpty()) {
         if ($list->isEmpty()) {