|
@@ -39,11 +39,13 @@ class GeoLinkLogic extends BaseLogic |
|
@@ -39,11 +39,13 @@ class GeoLinkLogic extends BaseLogic |
|
39
|
* @time :2025/7/14 16:47
|
39
|
* @time :2025/7/14 16:47
|
|
40
|
*/
|
40
|
*/
|
|
41
|
public function getLinkList($map = [],$page = 1,$row = 20,$order = 'id'){
|
41
|
public function getLinkList($map = [],$page = 1,$row = 20,$order = 'id'){
|
|
42
|
- $filed = ['*'];
|
|
|
|
43
|
if(isset($map['url']) && !empty($map['url'])){
|
42
|
if(isset($map['url']) && !empty($map['url'])){
|
|
44
|
$map['url'] = ['like','%'.$map['url'].'%'];
|
43
|
$map['url'] = ['like','%'.$map['url'].'%'];
|
|
45
|
}
|
44
|
}
|
|
46
|
- $lists = $this->model->lists($map,$page,$row,$order,$filed);
|
45
|
+ if(!isset($map['type']) || empty($map['type'])){
|
|
|
|
46
|
+ $map['type'] = GeoLink::TYPE_NEWS;
|
|
|
|
47
|
+ }
|
|
|
|
48
|
+ $lists = $this->model->lists($map,$page,$row,$order,['*']);
|
|
47
|
return $this->success($lists);
|
49
|
return $this->success($lists);
|
|
48
|
}
|
50
|
}
|
|
49
|
|
51
|
|