feat: 增加小七端配置

This commit is contained in:
2026-05-26 10:41:44 +08:00
parent 7f30ad8b1b
commit a479aa7d0d
5 changed files with 35 additions and 8 deletions

View File

@@ -12,7 +12,7 @@ import rawConfigs from "../../client-configs.json" with { type: "json" };
export const CLIENT_CONFIGS = rawConfigs;
// 获取当前用户端配置
export const getCurrentConfig = () => CLIENT_CONFIGS.zhinian;
export const getCurrentConfig = () => CLIENT_CONFIGS.xiaoqi;
export const clientId = getCurrentConfig().clientId;
export const appId = getCurrentConfig().appId;
@@ -20,6 +20,8 @@ export const appId = getCurrentConfig().appId;
export const ClientType = {
// 智念
ZHINIAN: "ZHINIAN",
// 小七
XIAOQI: "XIAOQI",
// 朵花
DUOHUA: "DUOHUA",
// 天沐
@@ -33,6 +35,8 @@ export const currentClientType = () => {
switch (getCurrentConfig().name) {
case "念念":
return ClientType.ZHINIAN;
case "小七":
return ClientType.XIAOQI;
case "朵朵":
return ClientType.DUOHUA;
case "沐沐":