refactor(settings): remove filing info config and readers
Drop the 备案信息 group (icp_filing, police_filing, footer_text) from the global.common PHP/Vue schemas, the FacadeBulk readers and the get_global_settings() payload. No frontend consumer existed. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
1 parent
32172582ff
commit
6da08d9d4f
5 files changed
+2
-63
No files matched your search
@@ -199,47 +199,6 @@ trait FacadeBulk {
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* 获取备案配置。
|
||||
* @return array {icp_enabled, icp_filing, police_enabled, police_filing}
|
||||
*/
|
||||
public static function get_filing_settings(): array {
|
||||
$s = self::get_all();
|
||||
$icp_enabled = !isset($s['footer_icp']) || !empty($s['footer_icp']);
|
||||
$police_enabled = !isset($s['footer_police']) || !empty($s['footer_police']);
|
||||
$icp_filing = trim((string) ($s['icp_filing'] ?? ''));
|
||||
$police_filing = trim((string) ($s['police_filing'] ?? ''));
|
||||
return [
|
||||
'icp_enabled' => $icp_enabled,
|
||||
'icp_filing' => $icp_filing,
|
||||
'police_enabled' => $police_enabled,
|
||||
'police_filing' => $police_filing,
|
||||
];
|
||||
}
|
||||
|
||||
|
||||
|
||||
/** 获取页脚附加文字 */
|
||||
public static function footer_text(): string {
|
||||
return trim((string) self::get_value('footer_text', ''));
|
||||
}
|
||||
|
||||
|
||||
|
||||
/** 获取 ICP 备案号 */
|
||||
public static function icp_filing(): string {
|
||||
return trim((string) self::get_value('icp_filing', ''));
|
||||
}
|
||||
|
||||
|
||||
|
||||
/** 获取公安备案号 */
|
||||
public static function police_filing(): string {
|
||||
return trim((string) self::get_value('police_filing', ''));
|
||||
}
|
||||
|
||||
|
||||
|
||||
/** 获取导航 Logo 宽度 */
|
||||
public static function logo_width(): int {
|
||||
$width = (int) self::get_value('logo_width', 150);
|
||||
|
||||
Reference in new issue
Block a user