...
|
...
|
@@ -36,19 +36,19 @@ const request = async({url, method, reqParams, context}) => { |
|
|
};
|
|
|
|
|
|
if (apiInfo.service) {
|
|
|
return await serviceApi.get(apiInfo.api, params, {
|
|
|
return await serviceApi.get(`${apiInfo.api}${apiInfo.path}`, params, {
|
|
|
cache: cache,
|
|
|
code: 200,
|
|
|
headers
|
|
|
});
|
|
|
} else if (apiInfo.ufo) {
|
|
|
return await ufoAPI[method]('', params, {
|
|
|
return await ufoAPI[method](`${apiInfo.path}`, params, {
|
|
|
cache: cache,
|
|
|
code: 200,
|
|
|
headers
|
|
|
});
|
|
|
} else {
|
|
|
return await yohoApi[method]('', params, {
|
|
|
return await yohoApi[method](`${apiInfo.path}`, params, {
|
|
|
code: 200,
|
|
|
cache: cache,
|
|
|
headers
|
...
|
...
|
|