|
|
'use strict';
|
|
|
|
|
|
const platformApi = new global.yoho.ApiBase(config.domains.platformApi, {
|
|
|
const platformApi = new global.yoho.ApiBase(global.yoho.config.domains.platformApi, {
|
|
|
name: 'imCs',
|
|
|
cache: global.yoho.cache,
|
|
|
useCache: false
|
...
|
...
|
@@ -8,7 +8,7 @@ const platformApi = new global.yoho.ApiBase(config.domains.platformApi, { |
|
|
const api = global.yoho.API;
|
|
|
|
|
|
const index = (req) => {
|
|
|
return api.get('/platform/product/material/canlogin', { uid: req.user.uid }).then(data => {
|
|
|
return platformApi.get('/platform/product/material/canlogin', { uid: req.user.uid }).then(data => {
|
|
|
console.log(data);
|
|
|
let params = {
|
|
|
brandId: 1,
|
...
|
...
|
@@ -17,7 +17,7 @@ const index = (req) => { |
|
|
page: 1
|
|
|
};
|
|
|
|
|
|
return api.get('/platform/product/material/getList', Object.assign({
|
|
|
return platformApi.get('/platform/product/material/getList', Object.assign({
|
|
|
method: ''
|
|
|
}, params), { cache: true });
|
|
|
});
|
...
|
...
|
|