Files
YGChatCS/constant/base.js
2025-09-16 17:04:50 +08:00

29 lines
628 B
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

// 小程序特有相关: 同时更改manifest.json和 project.config.json文件中的appid
// 所有用户端的配置
export const CLIENT_CONFIGS = {
// 智念用户端
zhinian: {
clientId: '2',
appId: 'wx5e79df5996572539'
},
// 朵花用户端
duohua: {
clientId: '2',
appId: 'wx23f86d809ae80259'
},
// 天沐用户端
tianmu: {
clientId: '4',
appId: 'wx0be424e1d22065a9'
}
};
// 获取当前用户端配置
const getCurrentConfig = () => {
return CLIENT_CONFIGS.zhinian;
};
export const clientId = getCurrentConfig().clientId;
export const appId = getCurrentConfig().appId;