删除私信分支链路
This commit is contained in:
1 parent
1c5c6d86bb
commit
c6c2c0af6d
39 files changed
+32
-1465
No files matched your search
@@ -194,7 +194,6 @@ trait DisplayPageGroups {
|
||||
'seo' => self::get_seo_settings(),
|
||||
'mail' => self::get_smtp(),
|
||||
'email_events' => self::get_email_event_config(),
|
||||
'email_private_receive_limit' => self::get_email_private_receive_limit(),
|
||||
'footer' => self::get_footer_settings(),
|
||||
'tabbar' => self::get_footer_tabbar_settings(),
|
||||
'floating_buttons' => self::get_floating_buttons_settings(),
|
||||
|
||||
@@ -100,11 +100,6 @@ trait DomainGroups {
|
||||
return Integration::auto_clear_settings();
|
||||
}
|
||||
|
||||
/** 私信功能配置 */
|
||||
public static function private_message_settings(): array {
|
||||
return Integration::private_message_settings();
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取菜单项扩展 meta 字段列表
|
||||
*/
|
||||
|
||||
@@ -9,13 +9,6 @@ defined('ABSPATH') || exit;
|
||||
|
||||
class Integration {
|
||||
|
||||
/** 私信邮件接收组限制 (all/vip/vip2/admin) */
|
||||
public static function get_email_private_receive_limit(): string {
|
||||
$limit = (string) Settings::get_value('email_private_receive_limit', 'all');
|
||||
$valid = ['all', 'vip', 'vip2', 'admin'];
|
||||
return in_array($limit, $valid, true) ? $limit : 'all';
|
||||
}
|
||||
|
||||
/** 获取OAuth配置 */
|
||||
public static function get_oauth(): array {
|
||||
return get_option('aksrt_oauth', []);
|
||||
@@ -386,7 +379,7 @@ class Integration {
|
||||
if (!is_array($types)) {
|
||||
$types = [];
|
||||
}
|
||||
$allowed = ['posts', 'comment', 'favorite', 'like', 'hot', 'followed', 'system', 'pay', 'withdraw_reply', 'medal', 'auth_apply_reply', 'download', 'credits', 'private', 'report'];
|
||||
$allowed = ['posts', 'comment', 'favorite', 'like', 'hot', 'followed', 'system', 'pay', 'withdraw_reply', 'medal', 'auth_apply_reply', 'download', 'credits', 'report'];
|
||||
return [
|
||||
'enabled' => !empty($settings['message_auto_clear_s']),
|
||||
'days' => max(1, min(3650, (int) ($settings['message_auto_clear_time'] ?? 365))),
|
||||
@@ -394,25 +387,6 @@ class Integration {
|
||||
];
|
||||
}
|
||||
|
||||
/** 私信功能配置 */
|
||||
public static function private_message_settings(): array {
|
||||
$settings = Settings::get_all();
|
||||
$quick_often = (string) ($settings['private_quick_often'] ?? "你好,请问有什么可以帮你的?\n感谢你的反馈\n已处理,请查收");
|
||||
$quick_lines = array_filter(array_map('trim', preg_split('/\r\n|\r|\n/', $quick_often)));
|
||||
|
||||
return [
|
||||
'enabled' => !array_key_exists('private_s', $settings) || !empty($settings['private_s']),
|
||||
'smilie' => !empty($settings['private_smilie_s']),
|
||||
'code' => !empty($settings['private_code_s']),
|
||||
'image' => !empty($settings['private_image_s']),
|
||||
'upload_img' => !empty($settings['private_upload_img']),
|
||||
'quick_reply' => !empty($settings['private_quick_s']),
|
||||
'quick_often' => array_values($quick_lines),
|
||||
'submit_text' => sanitize_text_field((string) ($settings['private_submit_text'] ?? '发送')),
|
||||
'placeholder' => sanitize_text_field((string) ($settings['private_placeholder'] ?? '请输入消息...')),
|
||||
];
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取右侧浮动按钮完整配置
|
||||
* @return array {enabled, style, position, scroll_hide, scroll_down_hide, filter_blur, items}
|
||||
|
||||
@@ -729,15 +729,6 @@ class Settings {
|
||||
DisplayRuntime::save_friend_links($links);
|
||||
}
|
||||
|
||||
|
||||
|
||||
/** 私信邮件接收组限制 (all/vip/vip2/admin) */
|
||||
public static function get_email_private_receive_limit(): string {
|
||||
return Integration::get_email_private_receive_limit();
|
||||
}
|
||||
|
||||
|
||||
|
||||
/** 获取OAuth配置 */
|
||||
public static function get_oauth(): array {
|
||||
return Integration::get_oauth();
|
||||
|
||||
Reference in new issue
Block a user