Authored by 李奇

资源位服务修改

... ... @@ -10,13 +10,15 @@ const commonController = {
const {contentCode} = req.query;
try {
let list = await req.ctx(Common).resource(contentCode);
let result = await req.ctx(Common).resource(contentCode);
res.json({
code: 200,
data: list,
message: '获取成功'
});
if (result.code === 200) {
return res.json({
code: 200,
data: result.data,
message: '获取成功'
});
}
} catch (e) {
next();
}
... ...
... ... @@ -14,7 +14,7 @@ class Common extends global.yoho.BaseModel {
url: 'operations/api/v5/resource/get',
data: {
content_code: code,
platform: 'app'
platform: 'platform'
},
api: global.yoho.ServiceAPI
});
... ...
... ... @@ -19,16 +19,16 @@ module.exports = {
// yohoVerifyUdid: '0f626ede-0e17-460b-a8ea-069ee506e8e9',
domains: {
// api: 'http://api-test3.yohops.com:9999/',
// service: 'http://service-test3.yohops.com:9999/',
// singleApi: 'http://api-test3.yohops.com:9999/'
api: 'http://api-test3.dev.yohocorp.com/',
service: 'http://api-test3.dev.yohocorp.com/',
singleApi: 'http://api-test3.dev.yohocorp.com/',
singleApi: 'http://api.yoho.cn/',
api: 'http://api.yoho.cn/',
store: 'http://192.168.102.47:8080/portal-gateway/wechat/',
service: 'http://service.yoho.cn/',
serviceNotify: 'http://service.yoho.cn/',
platformApi: 'http://172.16.6.210:8088/',
// singleApi: 'http://api.yoho.cn/',
// api: 'http://api.yoho.cn/',
// store: 'http://192.168.102.47:8080/portal-gateway/wechat/',
// service: 'http://service.yoho.cn/',
// serviceNotify: 'http://service.yoho.cn/',
// platformApi: 'http://172.16.6.210:8088/',
},
from: {
action: {
... ...