You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

119 lines
2.9 KiB

const current = "dev";
// const current = "prod";
// const current = "qinou";
const appname = "换电商用车";
const profiles = {
dev: {
baseURL: "https://www.zzpower.net/",
// baseURL: "http://192.168.2.12:48080/",
// baseURL: "http://2a2b9f7b.r11.cpolar.top/",
api_miniapp: "service-miniapp/",
api_baseinfo: "service-baseinfo/",
api_pay: "service-pay/"
},
//服务器生产环境地址
prod: {
baseURL: "https://www.zzpower.net/",
api_miniapp: "service-miniapp/",
api_baseinfo: "service-baseinfo/",
api_pay: "service-pay/",
appIcon: "",
facilitator: '',
address: '',
powerProtocol: '',
iPhone: '',
email: '',
api_recognition:'service-openapi/',
api_userinfo: "service-userinfo/",
mqtt:'wx',
style:0,
},
//
qinou: {
baseURL: "https://www.zzpower.net/",
api_miniapp: "service-miniapp/",
api_baseinfo: "service-baseinfo/",
api_pay: "service-pay/",
appIcon: "",
facilitator: '',
address: '',
powerProtocol: '',
iPhone: '17757285870',
email: '',
api_recognition:'service-openapi/',
api_userinfo: "service-userinfo/",
mqtt:'',
style:1,
},
};
// 服务器域名
const baseUrl = profiles[current].baseURL;
//api路径
const api_miniapp = profiles[current].api_miniapp;
//api路径2
const api_baseinfo = profiles[current].api_baseinfo;
const api_pay = profiles[current].api_pay;
const api_userinfo = profiles[current].api_userinfo;
//登录logo
const appIconAddress = profiles[current].appIcon
const facilitator = profiles[current].facilitator
const address = profiles[current].address
const powerProtocol = profiles[current].powerProtocol
const iPhone = profiles[current].iPhone
const email = profiles[current].email
// 请求接口
const wxUrl_miniapp = baseUrl + api_miniapp;
// 请求接口2
const wxUrl_baseinfo = baseUrl + api_baseinfo;
const wxUrl_userinfo = baseUrl + api_userinfo;
const wxUrl_pay = baseUrl + api_pay;
// 车辆认证上传图片识别
const wxUrl_recognition =baseUrl+ profiles[current].api_recognition
// 交接班mqtt
const mqtt_host=profiles[current].mqtt
const style=profiles[current].style
// 登录接口
const loginUrl = baseUrl + api_miniapp + "customer/login";
//上传接口
const upload = baseUrl + "app-api/infra/file/upload";
//baiDu map key
const bdMapKey = "ApUOGKp5UWxgCj2jL9DQT0BZfcKRWPOT";
//rest aes key
const restapiAesKey = "5F6B2AK33DASD1235E74C231B47AC8F1";
// 腾讯地图的key
const iMapKey = "WDIBZ-P7G37-QUAXT-HXMDB-XBGC2-NEBNB"
export default {
baseUrl: baseUrl,
api_miniapp: api_miniapp,
wxUrl_miniapp: wxUrl_miniapp,
wxUrl_baseinfo: wxUrl_baseinfo,
wxUrl_pay: wxUrl_pay,
loginUrl: loginUrl,
upload: upload,
bdMapKey: bdMapKey,
restApiAesKey: restapiAesKey,
iMapKey: iMapKey,
appIcon: appIconAddress,
facilitator: facilitator,
address: address,
powerProtocol: powerProtocol,
iPhone:iPhone,
email:email,
wxUrl_recognition:wxUrl_recognition,
wxUrl_userinfo:wxUrl_userinfo,
mqtt_host:mqtt_host,
style:style
};