Authored by 陈峰

commit

... ... @@ -38,18 +38,15 @@ const request = async({url, method, reqParams = {}, context}) => {
if (apiInfo.service) {
return await serviceApi.get(`${apiInfo.api}${apiInfo.path}`, params, {
cache: cache,
code: 200,
headers
});
} else if (apiInfo.ufo) {
return await ufoAPI[method](`${apiInfo.path || ''}`, params, {
cache: cache,
code: 200,
headers
});
} else {
return await yohoApi[method](`${apiInfo.path || ''}`, params, {
code: 200,
cache: cache,
headers
});
... ...
... ... @@ -42,7 +42,6 @@ module.exports = async(req, res, next) => {
data: params,
param: {
cache: cache,
code: 200
}
});
} else if (apiInfo.ufo) {
... ... @@ -51,7 +50,6 @@ module.exports = async(req, res, next) => {
url: apiInfo.path || '',
data: params,
param: {
code: 200,
cache: cache
}
});
... ... @@ -60,7 +58,6 @@ module.exports = async(req, res, next) => {
data: params,
url: apiInfo.path || '',
param: {
code: 200,
cache: cache
}
});
... ...