Browse Source

修改接口地址

master
liaoxinyu 11 months ago
parent
commit
500f5ce643
  1. 2
      config/index.js
  2. 2
      src/api/server/index.js
  3. 6
      src/index.html
  4. 8
      src/utils/consts.js
  5. 2
      src/views/home/index.vue
  6. 2
      src/views/wallet/exchange-assets.vue

2
config/index.js

@ -24,7 +24,7 @@ module.exports = {
'/api': {
// target: 'http://qkladmin2.ruanmeng.top/',
// target: 'https://guanli.coin.amatak.net/',
target: 'https://seee.otlwcoin.com/',
target: 'https://seee.oltwcoin.com/',
changeOrigin: true,
// pathRewrite: {
// // 请求时 将api替换成实际的apis等

2
src/api/server/index.js

@ -57,7 +57,7 @@ const headers = Object.assign({
Object.assign(settings, {
// api请求根地址 打包使用完整地址 调试使用本地服务器代理 避免跨域
baseURL: process.env.NODE_ENV == 'production' ? 'https://seee.otlwcoin.com/api/' : '/api/',
baseURL: process.env.NODE_ENV == 'production' ? 'https://seee.oltwcoin.com/api/' : '/api/',
// baseURL: 'https://djs.jedcoin.com/api/',
// 加载超时限定5s

6
src/index.html

@ -68,13 +68,13 @@
<script src="./static/libs/jquery.mCustomScrollbar.js"></script>
<script src="./static/js/custom.js"></script>
<script src="./static/libs/skroll.min.js"></script>
<script src="https://seee.otlwcoin.com/newlink/pako.min.js"></script>
<script src="https://seee.oltwcoin.com/newlink/pako.min.js"></script>
<script>
window.custom = "dark"; // 默认主题
window.api_path = "<%= htmlWebpackPlugin.options.isProduct ? 'https://seee.otlwcoin.com/api/sliderVerify' : 'https://seee.otlwcoin.com/api/sliderVerify' %>";
window.api_path = "<%= htmlWebpackPlugin.options.isProduct ? 'https://seee.oltwcoin.com/api/sliderVerify' : 'https://seee.oltwcoin.com/api/sliderVerify' %>";
// window.api_path = "<%= htmlWebpackPlugin.options.isProduct ? 'http://qkladmin2.ruanmeng.top/api/sliderVerify' : 'http://qkladmin2.ruanmeng.top/api/sliderVerify' %>";
// window.ws_path = "<%= htmlWebpackPlugin.options.isProduct ? 'wss://guanli.coin.amatak.net/ws1' : 'wss://guanli.coin.amatak.net/ws1' %>";
window.ws_path = "<%= htmlWebpackPlugin.options.isProduct ? 'https://seee.otlwcoin.com/api' : 'https://seee.otlwcoin.com/api' %>";
window.ws_path = "<%= htmlWebpackPlugin.options.isProduct ? 'https://seee.oltwcoin.com/api' : 'https://seee.oltwcoin.com/api' %>";
// window.ws_path = "<%= htmlWebpackPlugin.options.isProduct ? 'ws://qkladmin2.ruanmeng.top:2346' : 'ws://qkladmin2.ruanmeng.top:2346' %>";

8
src/utils/consts.js

@ -19,14 +19,14 @@ export default {
Server: {
Path: {
// API: isProduct ? `http://qkladmin2.ruanmeng.top/api/` : `/api/`,
BASE:isProduct?`https://seee.otlwcoin.com`:`https://seee.otlwcoin.com`,
API: isProduct ? `https://seee.otlwcoin.com/api/` : `/api/`,
BASE:isProduct?`https://seee.oltwcoin.com`:`https://seee.oltwcoin.com`,
API: isProduct ? `https://seee.oltwcoin.com/api/` : `/api/`,
// WS: isProduct ? `ws://qkladmin2.ruanmeng.top:2346` : `ws://qkladmin2.ruanmeng.top:2346`,
// WS1: isProduct ? `ws://qkladmin2.ruanmeng.top:2348` : `ws://qkladmin2.ruanmeng.top:2348`,
// WS: isProduct ? `wss://guanli.coin.amatak.net/ws1` : `wss://guanli.coin.amatak.net/ws1`,
WS: isProduct ? `wss://seee.otlwcoin.com/ws1` : `wss://seee.otlwcoin.com/ws1`,
WS: isProduct ? `wss://seee.oltwcoin.com/ws1` : `wss://seee.oltwcoin.com/ws1`,
// WS1: isProduct ? `wss://guanli.coin.amatak.net/ws2` : `wss://guanli.coin.amatak.net/ws2`,
WS1: isProduct ? `wss://seee.otlwcoin.com/ws2` : `wss://seee.otlwcoin.com/ws2`,
WS1: isProduct ? `wss://seee.oltwcoin.com/ws2` : `wss://seee.oltwcoin.com/ws2`,
}
}
};

2
src/views/home/index.vue

@ -590,7 +590,7 @@
return Boolean(localStorage.token);
},
downloadLink() {
return "https://seee.otlwcoin.com/download";
return "https://seee.oltwcoin.com/download";
},
//
featuresList() {

2
src/views/wallet/exchange-assets.vue

@ -645,7 +645,7 @@ export default {
});
},
handleDeposite1(){
// axios.posh('https://seee.otlwcoin.com/api/user/walletImage',{
// axios.posh('https://seee.oltwcoin.com/api/user/walletImage',{
// coin_id: this.deposite.coin_id,
// address_type: this.depositeAdressType //
// }).then(res => {

Loading…
Cancel
Save