From aa9e0fe26597869b3b0f0bf9509e821c69590872 Mon Sep 17 00:00:00 2001 From: walker_sheng Date: Thu, 30 Jun 2022 17:03:09 +0800 Subject: [PATCH 1/3] =?UTF-8?q?=E4=BF=AE=E6=94=B9local-test=E9=85=8D?= =?UTF-8?q?=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/utils/baseUrl.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/utils/baseUrl.js b/src/utils/baseUrl.js index 5157fc347..d14ff73dc 100644 --- a/src/utils/baseUrl.js +++ b/src/utils/baseUrl.js @@ -45,9 +45,9 @@ export function handlerUrl(data) { UPLOAD_API = 'http://joylink.club/jlfile'; BASE_SITE = 'https://test.joylink.club/cbtc'; } else if (process.env.NODE_ENV === 'local-test') { - BASE_API = 'http://192.168.3.233:9000'; - VOICE_API = 'http://192.168.3.233/oss/joylink'; - UPLOAD_API = 'http://192.168.3.233'; + BASE_API = 'https://192.168.3.233/rtss-server'; + VOICE_API = 'https://192.168.3.233/oss/joylink'; + UPLOAD_API = 'https://192.168.3.233'; BASE_SITE = '/cbtc'; } else if (process.env.NODE_ENV === 'production' && process.env.VUE_APP_PRO === 'local') { BASE_API = 'http://160.20.60.15:9000'; From c0416d72d2a0e86d3da0bcb38bbb39c4ef3b1a6f Mon Sep 17 00:00:00 2001 From: walker_sheng Date: Thu, 30 Jun 2022 17:20:24 +0800 Subject: [PATCH 2/3] =?UTF-8?q?=E4=BF=AE=E6=94=B9local-test=E9=85=8D?= =?UTF-8?q?=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 1 + 1 file changed, 1 insertion(+) diff --git a/package.json b/package.json index 4373cc9e3..346506a30 100644 --- a/package.json +++ b/package.json @@ -10,6 +10,7 @@ "build": "vue-cli-service build --mode production", "test": "vue-cli-service build --mode staging", "local": "vue-cli-service build --mode", + "local-test": "vue-cli-service build --mode local-test", "buildas": "vue-cli-service build --mode", "preview": "node build/index.js --preview", "lint": "eslint --ext .js,.vue src", From 7e23acdc488d7ab8854dc059b08a1a988065ecd6 Mon Sep 17 00:00:00 2001 From: walker_sheng Date: Thu, 30 Jun 2022 17:24:40 +0800 Subject: [PATCH 3/3] =?UTF-8?q?=E4=BF=AE=E6=94=B9local-test=E9=85=8D?= =?UTF-8?q?=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.local-test | 8 ++++++++ package.json | 1 - 2 files changed, 8 insertions(+), 1 deletion(-) create mode 100644 .env.local-test diff --git a/.env.local-test b/.env.local-test new file mode 100644 index 000000000..ffad5ecb6 --- /dev/null +++ b/.env.local-test @@ -0,0 +1,8 @@ +# just a flag +NODE_ENV = 'local-test' + +# base api +# VUE_APP_BASE_API = 'https://test.joylink.club/jlcloud' +# VUE_APP_VOICE_API = 'https://joylink.club/oss/joylink' +# VUE_APP_UPLOAD_API = 'https://upload.joylink.club' +# VUE_APP_BASE_SITE='https://test.joylink.club/cbtc' diff --git a/package.json b/package.json index 346506a30..4373cc9e3 100644 --- a/package.json +++ b/package.json @@ -10,7 +10,6 @@ "build": "vue-cli-service build --mode production", "test": "vue-cli-service build --mode staging", "local": "vue-cli-service build --mode", - "local-test": "vue-cli-service build --mode local-test", "buildas": "vue-cli-service build --mode", "preview": "node build/index.js --preview", "lint": "eslint --ext .js,.vue src",