Commit 8883e158 by 郑炬波

feat: 下云域名

parent 668425c4
{ {
"name": "@ydl-packages/toolkit", "name": "@ydl-packages/toolkit",
"version": "1.0.4", "version": "1.0.4-next.1",
"description": "", "description": "",
"main": "./dist/index.umd.js", "main": "./dist/index.umd.js",
"scripts": { "scripts": {
......
let BASE_URL_JAVA = ""; let BASE_URL_JAVA = "";
let BASE_GATEWAY = ""; let BASE_GATEWAY = "";
const isDev = typeof window !== 'undefined' ? window.location.hostname.indexOf("dev") > -1 : false; const isTest = typeof window !== 'undefined' ? window.location.hostname.indexOf("-test") > -1 : false;
const isTest = typeof window !== 'undefined' ? window.location.hostname.indexOf("test") > -1 : false; const isProd = typeof window !== 'undefined' ? (window.location.hostname.indexOf("dev") == -1 && window.location.hostname.indexOf("test") == -1) : false;
const isLocal = typeof window !== 'undefined' ? window.location.hostname.indexOf("localhost") > -1 : false; if(isProd){
if(isDev || isTest || isLocal){
BASE_URL_JAVA = 'https://testapi.ydl.com';
BASE_GATEWAY = 'https://testapp2.yidianling.com'
}
else{
BASE_URL_JAVA = 'https://api.ydl.com'; BASE_URL_JAVA = 'https://api.ydl.com';
BASE_GATEWAY = 'https://app2.yidianling.com' BASE_GATEWAY = 'https://app2.yidianling.com'
} }
else if(isTest){
BASE_URL_JAVA = 'https://api-test.ydl.com';
BASE_GATEWAY = 'https://app2-test.ydl.com'
}
else{
BASE_URL_JAVA = 'https://testapi.ydl.com';
BASE_GATEWAY = 'https://testapp2.yidianling.com'
}
/** /**
* doc: http://47.96.181.183:8806/api/swagger-ui.html#!/finance45v45245controller/doUnityPayUsingPOST * doc: http://47.96.181.183:8806/api/swagger-ui.html#!/finance45v45245controller/doUnityPayUsingPOST
*/ */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment