refactor: 横幅及导航新增用于回显的链接数据字段
This commit is contained in:
@@ -3,6 +3,7 @@ declare (strict_types = 1);
|
||||
|
||||
namespace app\admin\controller\v1;
|
||||
|
||||
use app\admin\model\v1\ArticleModel;
|
||||
use app\admin\model\v1\SysBannerItemModel;
|
||||
use app\admin\validate\v1\SysBannerItemValidate;
|
||||
|
||||
@@ -64,6 +65,9 @@ class BannerItem
|
||||
return error('横幅不存在');
|
||||
}
|
||||
|
||||
// 组装用于前台回显的链接数据
|
||||
$banner_item['link_echo_data'] = System::getEchoDataBySystemPageUrl($banner_item['link_to'], $banner_item['link']);
|
||||
|
||||
return success('获取成功', $banner_item);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user