Files
YGChatCS/src/request/base/baseUrl.js
duanshuwen b5952961fe feat: add mini-program privacy auth, update oss urls and refine photo guide
update oss static resource urls to oss.nianxx.cn
refactor privacy component to be reusable, add wechat mini-program privacy authorization check before image picking
add image urls to photo guide examples, refine photo guide ui styles and remove unused avatarSrc prop
2026-07-13 20:14:49 +08:00

19 lines
649 B
JavaScript

/// 生产环境基础地址
export const proUrl = "https://biz.nianxx.cn";
/// 生产环境服务器wss地址
export const wssProUrl = "wss://biz.nianxx.cn/ingress/agent/ws/chat";
/// 服务器基础地址
export const devUrl = "https://onefeel.brother7.cn/ingress";
/// 测试服务器wss地址
export const wssDevUrl = "wss://onefeel.brother7.cn/ingress/agent/ws/chat";
/// 服务器基础地址 - 根据环境变量自动切换
import { currentClientType } from "@/constant/base";
export const ossChengduUrl = () => {
const clientType = currentClientType().toLowerCase();
return "https://oss.nianxx.cn/mp/static/" + clientType + "/";
};