Authored by zhangxiaoru

channel

... ... @@ -7,12 +7,9 @@
const utils = '../../../utils';
const contentCodeConfig = require('../../../config/content-code');
const _ = require('lodash');
// const api = global.yoho.ServiceAPI;
// const API = global.yoho.API;
const logger = global.yoho.logger;
const resourcesProcess = require(`${utils}/resources-process`);
/**
* 性别数据
* @type {Object}
... ... @@ -268,7 +265,7 @@ module.exports = class extends global.yoho.BaseModel {
_getChannelBg() {
return this.get({
url: 'operations/api/v5/resource/get',
data: {content_code: contentCode.index},
data: {content_code: contentCode.index},
api: global.yoho.ServiceAPI
}, {
cache: true
... ... @@ -348,7 +345,7 @@ module.exports = class extends global.yoho.BaseModel {
shop_ids: params.shopIds,
uid: params.uid,
},
api: global.yoho.API
api: global.yoho.API
});
}
};
... ...
... ... @@ -7,7 +7,6 @@
'use strict';
const utils = '../../../utils';
const resourcesProcess = require(`${utils}/resources-process`);
const service = global.yoho.ServiceAPI;
module.exports = class extends global.yoho.BaseModel {
constructor(ctx) {
... ...