mirror of
https://gitee.com/ulthon/ulthon_information.git
synced 2026-03-03 16:24:28 +08:00
feat: 增加平台信息跳转
This commit is contained in:
@@ -332,3 +332,16 @@ function list_post_platform()
|
||||
|
||||
return $list;
|
||||
}
|
||||
|
||||
function item_post_platform($id)
|
||||
{
|
||||
$item = Nav::where('id', $id)->where('type', 12)->where('status',1)->cache(30)->find();
|
||||
if (!empty($item)) {
|
||||
$desc = $item->desc;
|
||||
$desc_arr = explode(PHP_EOL, $desc);
|
||||
$item->home_url = $desc_arr[0]?? '';
|
||||
$item->account = $desc_arr[1]?? '';
|
||||
|
||||
}
|
||||
return $item;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user