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;
}

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -7,8 +7,8 @@
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>内容管理</title>
{include file="common/_require"}
<link href="https://cdn.jsdelivr.net/npm/@wangeditor/editor@latest/dist/css/style.css" rel="stylesheet">
<script src="https://cdn.jsdelivr.net/npm/@wangeditor/editor@latest/dist/index.min.js"></script>
<link href="/static/lib/wangeditor/css/style.css" rel="stylesheet">
<script src="/static/lib/wangeditor/index.js"></script>
<script>
var currentHeaderNavItem = 'Post-{$Request.param.type|default="1"}';
var currentLeftNavItem = 'post-{$Request.param.type|default="1"}';

View File

@@ -51,10 +51,10 @@
.options-box>a,
.options-box>div {
display: block;
margin-bottom: 5px;
margin-bottom: 2px;
background-color: #333;
color: #fff;
padding: 5px 10px;
padding: 2px 10px;
border-radius: 5px;
text-align: center;
text-decoration: none;