作者 lyh

变更数据

... ... @@ -39,11 +39,13 @@ class GeoLinkLogic extends BaseLogic
* @time :2025/7/14 16:47
*/
public function getLinkList($map = [],$page = 1,$row = 20,$order = 'id'){
$filed = ['*'];
if(isset($map['url']) && !empty($map['url'])){
$map['url'] = ['like','%'.$map['url'].'%'];
}
$lists = $this->model->lists($map,$page,$row,$order,$filed);
if(!isset($map['type']) || empty($map['type'])){
$map['type'] = GeoLink::TYPE_NEWS;
}
$lists = $this->model->lists($map,$page,$row,$order,['*']);
return $this->success($lists);
}
... ...
... ... @@ -20,5 +20,8 @@ use App\Models\Base;
*/
class GeoLink extends Base
{
const TYPE_NEWS = 1;//权威新闻
const TYPE_LINK = 2;//外链数据
protected $table = 'gl_geo_link';
}
... ...