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

fix(tenant): tenantId字段校验

parent 0d101d3f
......@@ -3,13 +3,15 @@ import config from '../config';
export default {
getPageById(params) {
return http.get(`http://127.0.0.1:7002/editor/get/${params.pageId}?lite=1`);
return http.get(`${config.apiHost}/editor/get/${params.pageId}?lite=1`);
},
getShopCartCount() {
return http.get(`${config.kdspHost}/api/kdsp/shop-cart/count`);
},
getMpSchema(params) {
return http.post(`${config.kdspHost}/api/kdsp/ka/info/getShareMiniUrl`, params, { emulateJSON: true });
getMpSchema(params, appId) {
return http.post(`${config.kdspHost}/api/kdsp/ka/info/getShareMiniUrl`, params, { emulateJSON: true, headers: {
'mini-app-id': appId
} });
},
getWxConfig(url = window.location.href.split('#')[0]) {
return http.post(`${config.kdspHost}/api/kdsp/wx/mp/getJsapiSign`, {
......
......@@ -9,7 +9,8 @@ const hostMap = {
test: true,
yxmTenantId: 560761,
appIdMap: {
560761: 'wxe16bf9293671506c'
560761: 'wxe16bf9293671506c',
560867: 'wxccb8435d68e8c7d6',
},
};
......
......@@ -8,6 +8,7 @@ export default {
test: false,
yxmTenantId: 560761,
appIdMap: {
560761: 'wxb3e6270e1b1e0bc7'
560761: 'wxb3e6270e1b1e0bc7',
560867: 'wxbd0bc68b270a1dab',
},
};
......@@ -9,7 +9,8 @@ const hostMap = {
test: true,
yxmTenantId: 560761,
appIdMap: {
560761: 'wxe16bf9293671506c'
560761: 'wxe16bf9293671506c',
560867: 'wxccb8435d68e8c7d6',
},
};
......
......@@ -109,11 +109,9 @@ export default {
if (isH5Normal && EASY_ENV_IS_BROWSER && this.wxAppId) {
try {
const [schema] = await api.getMpSchema({
// TODO
miniAppId: this.wxAppId,
miniUrl: WEAPP_PATH,
params: `url=${encodeURIComponent(JSON.stringify(this.link))}`
});
}, this.wxAppId);
this.mpSchema = schema;
} catch (error) {
......
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