feat: 完善三方平台设置;完善导出管理

This commit is contained in:
augushong
2025-06-16 13:38:47 +08:00
parent 81e079c8f9
commit d9452530e0
5 changed files with 57 additions and 5 deletions

View File

@@ -321,5 +321,14 @@ function show_time_ago($timestamp)
function list_post_platform()
{
return Nav::where('type', 12)->order('sort asc')->cache(30)->select();
$list = Nav::where('type', 12)->order('sort asc')->cache(30)->select();
foreach ($list as $item) {
$desc = $item->desc;
$desc_arr = explode(PHP_EOL, $desc);
$item->home_url = $desc_arr[0] ?? '';
$item->account = $desc_arr[1] ?? '';
}
return $list;
}