2025-04-16 02:11:26 +01:00

62 lines
2.0 KiB
JavaScript
Raw Permalink 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.

/** ---------------------此处为需要配置的参数开始区域----------------------------*/
//基础配置
const IP = '192.168.3.186'; //服务器IP地址或者域名部署了证书必须使用域名
const MODE='dev'; //开发模式dev,生产环境prod
//http接口配置
const apiProtocol="http"; //http或者https
const webPort='1024'; //nginx配置的web端端口号或者是node启动环境的端口号
// 小程序视频播放方案控制
// #ifdef MP-WEIXIN
const mpVideoMode = 'native' //webView是外部嵌入页面,native是小程序live-player组件
const videoPlayUrl = 'http://192.168.3.85:1024' //PC端项目地址
// #endif
//mqtt配置
// #ifdef MP-WEIXIN || APP-PLUS
const mqttProtocol = 'wx'; //未部署证书使用wx部署了证书使用wxs
// #endif
// #ifdef H5
const mqttProtocol = 'ws'; //未部署证书使用ws部署了证书使用wss
// #endif
const mqttPort='8083'; //mqtt的端口号,未部署证书使用8083部署了证书使用8084
// 地图的key和密钥配置此处配置兼容app和h5,小程序配置需要在manifest.json中配置
const securityJsCode = '77ef0c4c95553799630ad60dd9b692d7'; //高德地图密钥
const key = '661ce1b2c811daca029685d9ae25ee6d'; //高德key
// ai模型key参数配置
const APPID = '5a28b3d4';
const APISecret = 'N2UzYTM1YjQ2OWMyZGUxODdjMTAwOTNh';
const APIKey = 'f7d9a111b88f12921884419b41315304';
const httpUrl = "https://spark-api.xf-yun.com/v3.1/chat"; // 地址必须填写,代表着大模型的版本号
/** -----------------------------此处为需要配置的参数结束区域-----------------------------------*/
export default {
fetchUrl:`${apiProtocol}://${IP}:${webPort}/${MODE}-api`,
mqttUrl:`${mqttProtocol}://${IP}:${mqttPort}`,
securityJsCode,
key,
APPID,
APISecret,
APIKey,
httpUrl,
// #ifdef MP-WEIXIN
mpVideoMode,
videoPlayUrl
// #endif
}