Commit e7d6e670 authored by 郭志伟's avatar 郭志伟

feat(tenant): 调试

parent 418eaa6b
...@@ -2,10 +2,10 @@ import apolloSsr from '../../../config/apollo.ssr.json'; ...@@ -2,10 +2,10 @@ import apolloSsr from '../../../config/apollo.ssr.json';
const protocol = EASY_ENV_IS_BROWSER ? window.location.protocol : 'https'; const protocol = EASY_ENV_IS_BROWSER ? window.location.protocol : 'https';
const hostMap = { const hostMap = {
apiHost: `${protocol}//quantum-blocks-bfe.liangkebang.net`, apiHost: `${protocol}//quantum-blocks-vcc3.liangkebang.net`,
kdspHost: `${protocol}//talos-bfe.liangkebang.net`, kdspHost: `${protocol}//talos-vcc3.liangkebang.net`,
shenceUrl: `${protocol}//bn.xyqb.com/sa?project=default`, shenceUrl: `${protocol}//bn.xyqb.com/sa?project=default`,
mallHost: `${protocol}://mall-bfe.liangkebang.net`, mallHost: `${protocol}://mall-vcc3.liangkebang.net`,
test: true, test: true,
yxmTenantId: 560761 yxmTenantId: 560761
}; };
......
...@@ -58,6 +58,7 @@ export default { ...@@ -58,6 +58,7 @@ export default {
}, },
request(cfg) { request(cfg) {
const { method, hideVccChannel } = cfg; const { method, hideVccChannel } = cfg;
cfg.headers['qg-tenant-id'] = localStorage.get('tenantId') || '';
cfg.headers['X-Auth-Token'] = localStorage.get('vccToken') || ''; cfg.headers['X-Auth-Token'] = localStorage.get('vccToken') || '';
cfg.headers['version'] = '8.2.00'; cfg.headers['version'] = '8.2.00';
if (cfg.customHeader) { if (cfg.customHeader) {
......
...@@ -3,7 +3,7 @@ import { isWechat, isApp, errorQueryValues } from './utils.service'; ...@@ -3,7 +3,7 @@ import { isWechat, isApp, errorQueryValues } from './utils.service';
import Cookies from './cookieStorage.service'; import Cookies from './cookieStorage.service';
import localStorage from './localStorage.service'; import localStorage from './localStorage.service';
// formXcxPage:标识是从小程序跳转过来的; // formXcxPage:标识是从小程序跳转过来的;
const localStorageParams = ['creditToken', 'vccToken', 'vccChannel', 'sonVccChannel', 'formXcxPage']; const localStorageParams = ['creditToken', 'vccToken', 'vccChannel', 'sonVccChannel', 'formXcxPage', 'tenantId'];
const cookiesParams = ['h']; const cookiesParams = ['h'];
export default { export default {
......
{ {
"api": { "api": {
"apiHost": "https://quantum-blocks-bfe.liangkebang.net", "apiHost": "https://quantum-blocks-vcc3.liangkebang.net",
"h5Host": "https://quantum-h5-bfe.liangkebang.net", "h5Host": "https://quantum-h5-vcc3.liangkebang.net",
"opapiHost": "https://opapi-bfe.liangkebang.net", "opapiHost": "https://opapi-vcc3.liangkebang.net",
"passportHost": "https://passportapi-bfe.liangkebang.net", "passportHost": "https://passportapi-vcc3.liangkebang.net",
"kdspHost": "https://talos-bfe.liangkebang.net", "kdspHost": "https://talos-vcc3.liangkebang.net",
"loginUrl": "", "loginUrl": "",
"mallHost": "https://mall-bfe.liangkebang.net", "mallHost": "https://mall-vcc3.liangkebang.net",
"h5ShopHost": "https://tenet-bfe.liangkebang.net/#", "h5ShopHost": "https://tenet-vcc3.liangkebang.net/#",
"yxmTenantId": 560761 "yxmTenantId": 560761
}, },
"mysql": { "mysql": {
......
{ {
"apiHost": "https://quantum-blocks-bfe.liangkebang.net", "apiHost": "https://quantum-blocks-vcc3.liangkebang.net",
"h5Host": "https://quantum-h5-bfe.liangkebang.net", "h5Host": "https://quantum-h5-vcc3.liangkebang.net",
"opapiHost": "https://opapi-bfe.liangkebang.net", "opapiHost": "https://opapi-vcc3.liangkebang.net",
"passportHost": "https://passportapi-bfe.liangkebang.net", "passportHost": "https://passportapi-vcc3.liangkebang.net",
"kdspHost": "https://talos-bfe.liangkebang.net", "kdspHost": "https://talos-vcc3.liangkebang.net",
"loginUrl": "", "loginUrl": "",
"mallHost": "https://mall-bfe.liangkebang.net", "mallHost": "https://mall-vcc3.liangkebang.net",
"h5ShopHost": "https://tenet-bfe.liangkebang.net/#", "h5ShopHost": "https://tenet-vcc3.liangkebang.net/#",
"qiniuUpHost": "https://up-z0.qiniup.com", "qiniuUpHost": "https://up-z0.qiniup.com",
"qiniuHost": "https://appsync.lkbang.net", "qiniuHost": "https://appsync.lkbang.net",
"yxmTenantId": 560761 "yxmTenantId": 560761
......
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