友情链接管理;封装上传接口
This commit is contained in:
@ -1,45 +0,0 @@
|
||||
import { defineConfig } from 'umi';
|
||||
import proxy from './proxy';
|
||||
export default defineConfig({
|
||||
proxy: proxy['UAT'],
|
||||
define:{
|
||||
//商城2.0跳转地址
|
||||
REACT_APP_MALL_V2_URL:'http://111.198.162.67/zglt/index_hzf.jsp?id=dev',
|
||||
|
||||
//各系统跳转参数
|
||||
REACT_APP_CLIENT_KEY : 'KgPEkttG',
|
||||
// REACT_APP_CLIENT_SECRET :'ae5bdb183c502355d2055b3de73300aa73cbfdf3',
|
||||
|
||||
//密码加密参数
|
||||
REACT_APP_PASSWORD_CIPHERMODE:'1',
|
||||
REACT_APP_PASSWORD_PUBLICKEY:'0428D625CEEB71CE823BD7D78DFEE7B122F2DA5C4D21E32253AD684D0FE21810394A799639C0CDFBFEB535A1DFD6A366A637E582CE0B1466A5FE7858841135DE6B',
|
||||
|
||||
//当前环境
|
||||
START_ENV:'UAT',
|
||||
|
||||
//询价查看报价跳转地址
|
||||
// REACT_APP_XUNJIA_REDIRECT: 'http://10.0.204.215:8280/provider_uat',
|
||||
//询价-查看报价详情-虚拟用户uid
|
||||
REACT_APP_XUNJIA_UID: 'admin_entrance',
|
||||
|
||||
// //智慧客服ws地址
|
||||
// REACT_APP_CUSTOMERSERVICE_WS_REDIRECT: 'ws://10.242.31.158:18022/api/api/biz-customer-service',
|
||||
|
||||
//智慧客服用户中心地址
|
||||
REACT_APP_CUSTOMERSERVICE_USERCENTER: 'http://10.242.31.158:18022/auth/oauth/authorize?response_type=code',
|
||||
|
||||
//智慧客服client_id
|
||||
REACT_APP_CUSTOMERSERVICE_CLIENT_ID: 'COsHJydx',
|
||||
|
||||
//智慧客服地址
|
||||
REACT_APP_CUSTOMERSERVICE_REDIRECT: 'http://10.242.31.158:8632',
|
||||
|
||||
// //智慧客服文档中心查看图片地址
|
||||
// REACT_APP_CUSTOMERSERVICE_DOC_REDIRECT: 'http://cos.gz-tst.cos.tg.unicom.local/349553515466:mall/',
|
||||
|
||||
// //智慧客服加密公钥私钥ciphercode
|
||||
// REACT_APP_CUSTOMERSERVICE_PUBLICKEY : '0428D625CEEB71CE823BD7D78DFEE7B122F2DA5C4D21E32253AD684D0FE21810394A799639C0CDFBFEB535A1DFD6A366A637E582CE0B1466A5FE7858841135DE6B',
|
||||
// REACT_APP_CUSTOMERSERVICE_PRIVATEKEY : '4F7144028D4DCF88FA50F0E2B3FFDDCF63BBE17D1700537DCE037687D3AA3DA7',
|
||||
// REACT_APP_CUSTOMERSERVICE_CIPHERCODE : 1,
|
||||
},
|
||||
});
|
@ -3,43 +3,7 @@ import proxy from './proxy';
|
||||
export default defineConfig({
|
||||
proxy: proxy['dev'],
|
||||
define: {
|
||||
//商城2.0跳转地址
|
||||
REACT_APP_MALL_V2_URL: 'http://111.198.162.67/zglt/index_hzf.jsp?id=dev',
|
||||
|
||||
//各系统跳转参数
|
||||
REACT_APP_CLIENT_KEY: 'KgPEkttG',
|
||||
// REACT_APP_CLIENT_SECRET: 'ae5bdb183c502355d2055b3de73300aa73cbfdf3',
|
||||
|
||||
//密码加密参数
|
||||
REACT_APP_PASSWORD_CIPHERMODE: '1',
|
||||
REACT_APP_PASSWORD_PUBLICKEY: '0428D625CEEB71CE823BD7D78DFEE7B122F2DA5C4D21E32253AD684D0FE21810394A799639C0CDFBFEB535A1DFD6A366A637E582CE0B1466A5FE7858841135DE6B',
|
||||
|
||||
//当前环境
|
||||
START_ENV: 'DEV',
|
||||
|
||||
//询价查看报价跳转地址
|
||||
// REACT_APP_XUNJIA_REDIRECT: 'http://10.0.204.215:8080/provider_dev',
|
||||
//询价-查看报价详情-虚拟用户uid
|
||||
REACT_APP_XUNJIA_UID: 'admin_entrance',
|
||||
|
||||
//智慧客服用户中心地址
|
||||
REACT_APP_CUSTOMERSERVICE_USERCENTER: 'http://10.242.31.158:8100/auth/oauth/authorize?response_type=code',
|
||||
|
||||
//智慧客服client_id
|
||||
REACT_APP_CUSTOMERSERVICE_CLIENT_ID: 'COsHJydx',
|
||||
|
||||
//智慧客服地址
|
||||
REACT_APP_CUSTOMERSERVICE_REDIRECT: 'http://10.242.31.158:8632',
|
||||
|
||||
// //智慧客服ws地址
|
||||
// REACT_APP_CUSTOMERSERVICE_WS_REDIRECT: 'ws://10.242.37.148:18022/api/api/biz-customer-service',
|
||||
|
||||
// //智慧客服文档中心查看图片地址
|
||||
// REACT_APP_CUSTOMERSERVICE_DOC_REDIRECT: 'http://cos.gz-tst.cos.tg.unicom.local/349553515466:mall/',
|
||||
|
||||
// //智慧客服加密公钥私钥ciphercode
|
||||
// REACT_APP_CUSTOMERSERVICE_PUBLICKEY : '0428D625CEEB71CE823BD7D78DFEE7B122F2DA5C4D21E32253AD684D0FE21810394A799639C0CDFBFEB535A1DFD6A366A637E582CE0B1466A5FE7858841135DE6B',
|
||||
// REACT_APP_CUSTOMERSERVICE_PRIVATEKEY : '4F7144028D4DCF88FA50F0E2B3FFDDCF63BBE17D1700537DCE037687D3AA3DA7',
|
||||
// REACT_APP_CUSTOMERSERVICE_CIPHERCODE : 1,
|
||||
UPLOAD_URL: '/upload',
|
||||
REQUEST_BASE: '/api',
|
||||
},
|
||||
});
|
||||
|
@ -3,41 +3,7 @@ import proxy from './proxy';
|
||||
export default defineConfig({
|
||||
proxy: proxy['prod'],
|
||||
define:{
|
||||
//商城2.0跳转地址
|
||||
REACT_APP_MALL_V2_URL:'http://111.198.162.67/zglt/index_hzf.jsp?id=dev',
|
||||
|
||||
//各系统跳转参数
|
||||
REACT_APP_CLIENT_KEY : 'KgPEkttG',
|
||||
// REACT_APP_CLIENT_SECRET :'ae5bdb183c502355d2055b3de73300aa73cbfdf3',
|
||||
|
||||
//密码加密参数
|
||||
REACT_APP_PASSWORD_CIPHERMODE:'1',
|
||||
REACT_APP_PASSWORD_PUBLICKEY:'04819CF427F9150FEEBD91E8D2346F203FC47312D212022A967D8372EA30B9581CCEEFCE2670BDDAF2E8DA1620EA73948126078ED9FF9773AA3A94EE6C80035A18',
|
||||
|
||||
//当前环境
|
||||
START_ENV:'PROD',
|
||||
|
||||
//询价查看报价跳转地址
|
||||
// REACT_APP_XUNJIA_REDIRECT: 'https://60.10.26.178/provider',
|
||||
//询价-查看报价详情-虚拟用户uid
|
||||
REACT_APP_XUNJIA_UID: 'admin_entrance',
|
||||
//智慧客服用户中心地址
|
||||
REACT_APP_CUSTOMERSERVICE_USERCENTER: 'https://uscm.chinaunicom.cn:18023/auth/oauth/authorize?response_type=code',
|
||||
|
||||
//智慧客服client_id
|
||||
REACT_APP_CUSTOMERSERVICE_CLIENT_ID: 'COsHJydx',
|
||||
|
||||
//智慧客服地址
|
||||
REACT_APP_CUSTOMERSERVICE_REDIRECT: 'https://uscm.chinaunicom.cn:18011',
|
||||
// //智慧客服ws地址
|
||||
// REACT_APP_CUSTOMERSERVICE_WS_REDIRECT: 'ws://uscm.unicom.local:18022/api/api/biz-customer-service',
|
||||
|
||||
// //智慧客服文档中心查看图片地址
|
||||
// REACT_APP_CUSTOMERSERVICE_DOC_REDIRECT: 'http://cos.xx-pbc.cos.tg.unicom.local/349553515466:mall/',
|
||||
|
||||
// //智慧客服加密公钥私钥ciphercode
|
||||
// REACT_APP_CUSTOMERSERVICE_PUBLICKEY : '0428D625CEEB71CE823BD7D78DFEE7B122F2DA5C4D21E32253AD684D0FE21810394A799639C0CDFBFEB535A1DFD6A366A637E582CE0B1466A5FE7858841135DE6B',
|
||||
// REACT_APP_CUSTOMERSERVICE_PRIVATEKEY : '4F7144028D4DCF88FA50F0E2B3FFDDCF63BBE17D1700537DCE037687D3AA3DA7',
|
||||
// REACT_APP_CUSTOMERSERVICE_CIPHERCODE : 1,
|
||||
UPLOAD_URL: '/upload',
|
||||
REQUEST_BASE: '/api',
|
||||
},
|
||||
});
|
||||
|
@ -1,43 +0,0 @@
|
||||
import { defineConfig } from 'umi';
|
||||
import proxy from './proxy';
|
||||
export default defineConfig({
|
||||
proxy: proxy['sim'],
|
||||
define: {
|
||||
//商城2.0跳转地址
|
||||
REACT_APP_MALL_V2_URL: 'http://111.198.162.67/zglt/index_hzf.jsp?id=dev',
|
||||
|
||||
//各系统跳转参数
|
||||
REACT_APP_CLIENT_KEY: 'KgPEkttG',
|
||||
// REACT_APP_CLIENT_SECRET: 'ae5bdb183c502355d2055b3de73300aa73cbfdf3',
|
||||
|
||||
//密码加密参数
|
||||
REACT_APP_PASSWORD_CIPHERMODE: '1',
|
||||
REACT_APP_PASSWORD_PUBLICKEY: '0428D625CEEB71CE823BD7D78DFEE7B122F2DA5C4D21E32253AD684D0FE21810394A799639C0CDFBFEB535A1DFD6A366A637E582CE0B1466A5FE7858841135DE6B',
|
||||
|
||||
//当前环境
|
||||
START_ENV: 'sim',
|
||||
|
||||
//询价查看报价跳转地址
|
||||
// REACT_APP_XUNJIA_REDIRECT: 'http://10.0.204.215:8080/provider',
|
||||
//询价-查看报价详情-虚拟用户uid
|
||||
REACT_APP_XUNJIA_UID: 'admin_entrance',
|
||||
//智慧客服用户中心地址
|
||||
REACT_APP_CUSTOMERSERVICE_USERCENTER: 'http://10.242.31.158:8100/auth/oauth/authorize?response_type=code',
|
||||
|
||||
//智慧客服client_id
|
||||
REACT_APP_CUSTOMERSERVICE_CLIENT_ID: 'COsHJydx',
|
||||
|
||||
//智慧客服地址
|
||||
REACT_APP_CUSTOMERSERVICE_REDIRECT: 'http://10.242.31.158:8632',
|
||||
// //智慧客服ws地址
|
||||
// REACT_APP_CUSTOMERSERVICE_WS_REDIRECT: 'ws://10.242.31.54:18022/api/api/biz-customer-service',
|
||||
|
||||
// //智慧客服文档中心查看图片地址
|
||||
// REACT_APP_CUSTOMERSERVICE_DOC_REDIRECT: 'http://cos.xx-pbc.cos.tg.unicom.local/349553515466:mall/',
|
||||
|
||||
// //智慧客服加密公钥私钥ciphercode
|
||||
// REACT_APP_CUSTOMERSERVICE_PUBLICKEY : '0428D625CEEB71CE823BD7D78DFEE7B122F2DA5C4D21E32253AD684D0FE21810394A799639C0CDFBFEB535A1DFD6A366A637E582CE0B1466A5FE7858841135DE6B',
|
||||
// REACT_APP_CUSTOMERSERVICE_PRIVATEKEY : '4F7144028D4DCF88FA50F0E2B3FFDDCF63BBE17D1700537DCE037687D3AA3DA7',
|
||||
// REACT_APP_CUSTOMERSERVICE_CIPHERCODE : 1,
|
||||
},
|
||||
});
|
@ -1,8 +1,6 @@
|
||||
import { defineConfig } from 'umi';
|
||||
import defaultSettings,{antdTheme} from './defaultSettings';
|
||||
// import proxy from './proxy';
|
||||
import PageRoutes from './router.config'
|
||||
const { REACT_APP_ENV } = process.env;
|
||||
export default defineConfig({
|
||||
hash: true,
|
||||
antd: {
|
||||
|
@ -1,96 +1,20 @@
|
||||
export default {
|
||||
dev: {
|
||||
// '/api/wfap/v1/audit/bill/find/by/procid': {
|
||||
// target: 'http://10.242.37.148:8891/',//审批单 dev环境自动审批,暂时用不到
|
||||
// changeOrigin: true,
|
||||
// pathRewrite: { '^': '' },
|
||||
// },
|
||||
'/api': {
|
||||
// target: 'http://10.242.37.148:18022',//连接天宫的ng
|
||||
target: 'http://10.0.0.10:18013',//连接天宫的ng
|
||||
// target: 'http://10.242.37.148:18022',//
|
||||
target: 'http://10.0.0.10:18013',//
|
||||
changeOrigin: true,
|
||||
pathRewrite: { '^/api': '' },
|
||||
},
|
||||
},
|
||||
UAT: {
|
||||
'/api/core-service-ebtp-userinfo': {
|
||||
target: 'http://localhost:18023',
|
||||
'/upload': {
|
||||
target: 'http://10.0.0.10:18013',//
|
||||
changeOrigin: true,
|
||||
pathRewrite: { '/api/core-service-ebtp-userinfo': '' },
|
||||
},
|
||||
'/api/biz-service-ebtp-bid': {
|
||||
target: 'http://localhost:18003',
|
||||
changeOrigin: true,
|
||||
pathRewrite: { 'biz-service-ebtp-bid': '' },
|
||||
},
|
||||
'/api/biz-service-ebtp-extend': {
|
||||
target: 'http://localhost:18018',
|
||||
changeOrigin: true,
|
||||
pathRewrite: { '/api/biz-service-ebtp-extend': '' },
|
||||
},
|
||||
'/api/biz-service-ebtp-project': {
|
||||
target: 'http://localhost:18012',
|
||||
changeOrigin: true,
|
||||
pathRewrite: { '/api/biz-service-ebtp-project': '' },
|
||||
},
|
||||
'/api/sys-manager-ebtp-project': {
|
||||
target: 'http://localhost:18030',
|
||||
changeOrigin: true,
|
||||
pathRewrite: { '/api/sys-manager-ebtp-project': '' },
|
||||
},
|
||||
'/api/biz-service-ebtp-rsms': {
|
||||
target: 'http://localhost:18014',
|
||||
changeOrigin: true,
|
||||
pathRewrite: { '/api/biz-service-ebtp-rsms': '' },
|
||||
},
|
||||
'/api/biz-service-ebtp-agency': {
|
||||
target: 'http://localhost:18099',
|
||||
changeOrigin: true,
|
||||
pathRewrite: { '/api/biz-service-ebtp-agency': '' },
|
||||
},
|
||||
'/api/biz-supplier-manage': {
|
||||
target: 'http://localhost:18096',
|
||||
changeOrigin: true,
|
||||
pathRewrite: { '/api/biz-supplier-manage': '' },
|
||||
}
|
||||
|
||||
// '/api/wfap/v1/audit/bill/find/by/procid': {
|
||||
// target: 'http://10.242.31.158:8891/',//审批单 uat环境自动审批,暂时用不到
|
||||
// changeOrigin: true,
|
||||
// pathRewrite: { '^': '' },
|
||||
// },
|
||||
// '/living/api/*': {
|
||||
// // target: 'https://ai.cubigdata.cn:5001',//连接天宫的ng
|
||||
// target: 'http://localhost:3000',//连接天宫的ng
|
||||
// changeOrigin: true,
|
||||
// pathRewrite: { '/living/api': '' },
|
||||
// },
|
||||
// '/api/*': {
|
||||
// target: 'http://10.242.31.158:18022',//连接天宫的ng
|
||||
// changeOrigin: true,
|
||||
// pathRewrite: { '^': '' },
|
||||
// },
|
||||
// '/doc/v1.0/*': {
|
||||
// target: 'http://10.242.31.158:8806',//连接天宫的ng
|
||||
// changeOrigin: true,
|
||||
// pathRewrite: { '^': '' },
|
||||
// },
|
||||
},
|
||||
sim: {
|
||||
// '/api/wfap/v1/audit/bill/find/by/procid': {
|
||||
// target: 'http://10.242.31.158:8891/',//审批单 uat环境自动审批,暂时用不到
|
||||
// changeOrigin: true,
|
||||
// pathRewrite: { '^': '' },
|
||||
// },
|
||||
'/api/*': {
|
||||
target: 'http://10.242.31.54:18022',//连接天宫的ng
|
||||
changeOrigin: true,
|
||||
pathRewrite: { '^': '' },
|
||||
pathRewrite: { '^/upload': '' },
|
||||
},
|
||||
},
|
||||
prod: {
|
||||
'/api/*': {
|
||||
target: 'http://uscm.unicom.local:18022',//连接天宫的ng
|
||||
target: 'http://uscm.unicom.local:18022',//
|
||||
changeOrigin: true,
|
||||
pathRewrite: { '^': '' },
|
||||
},
|
||||
|
Reference in New Issue
Block a user