mirror of
https://gitee.com/ulthon/ulthon_information.git
synced 2026-03-03 16:24:28 +08:00
feat: 完善三方平台设置;完善导出管理
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user