🐛 fix: Fix bugs

This commit is contained in:
web
2025-10-21 04:10:34 -07:00
parent c2bfee1f31
commit a46657d5ef
15 changed files with 276 additions and 19 deletions
+11
View File
@@ -76,6 +76,17 @@ export async function updateNodeConfig(body: API.NodeConfig, options?: { [key: s
});
}
/** PreView Node Multiplier GET /v1/admin/system/node_multiplier/preview */
export async function preViewNodeMultiplier(options?: { [key: string]: any }) {
return request<API.Response & { data?: API.PreViewNodeMultiplierResponse }>(
'/v1/admin/system/node_multiplier/preview',
{
method: 'GET',
...(options || {}),
},
);
}
/** get Privacy Policy Config GET /v1/admin/system/privacy */
export async function getPrivacyPolicyConfig(options?: { [key: string]: any }) {
return request<API.Response & { data?: API.PrivacyPolicyConfig }>('/v1/admin/system/privacy', {
+14 -1
View File
@@ -108,6 +108,7 @@ declare namespace API {
type AuthConfig = {
mobile: MobileAuthenticateConfig;
email: EmailAuthticateConfig;
device: DeviceAuthticateConfig;
register: PubilcRegisterConfig;
};
@@ -456,6 +457,13 @@ declare namespace API {
user_subscribe_id: number;
};
type DeviceAuthticateConfig = {
enable: boolean;
show_ads: boolean;
enable_security: boolean;
only_real_device: boolean;
};
type Document = {
id: number;
title: string;
@@ -1272,7 +1280,7 @@ declare namespace API {
has_migrate: boolean;
};
type Hysteria = {
type Hysteria2 = {
port: number;
hop_ports: string;
hop_interval: number;
@@ -1495,6 +1503,11 @@ declare namespace API {
orderNo: string;
};
type PreViewNodeMultiplierResponse = {
current_time: string;
ratio: number;
};
type PreviewSubscribeTemplateParams = {
id: number;
};