Authored by htoooth

Merge branch 'feature/ufo' of http://git.yoho.cn/fe/yoho-app-web into feature/ufo

... ... @@ -42,13 +42,13 @@ const request = async({url, method, reqParams, context}) => {
headers
});
} else if (apiInfo.ufo) {
return await ufoAPI[method](`${apiInfo.path}`, params, {
return await ufoAPI[method](`${apiInfo.path || ''}`, params, {
cache: cache,
code: 200,
headers
});
} else {
return await yohoApi[method](`${apiInfo.path}`, params, {
return await yohoApi[method](`${apiInfo.path || ''}`, params, {
code: 200,
cache: cache,
headers
... ...
... ... @@ -48,7 +48,7 @@ module.exports = async(req, res, next) => {
} else if (apiInfo.ufo) {
result = await apiCtx[method]({
api: ufoAPI,
url: apiInfo.path,
url: apiInfo.path || '',
data: params,
param: {
code: 200,
... ... @@ -58,7 +58,7 @@ module.exports = async(req, res, next) => {
} else {
result = await apiCtx[method]({
data: params,
url: apiInfo.path,
url: apiInfo.path || '',
param: {
code: 200,
cache: cache
... ...