Authored by 陈峰

commit

@@ -38,18 +38,15 @@ const request = async({url, method, reqParams = {}, context}) => { @@ -38,18 +38,15 @@ const request = async({url, method, reqParams = {}, context}) => {
38 if (apiInfo.service) { 38 if (apiInfo.service) {
39 return await serviceApi.get(`${apiInfo.api}${apiInfo.path}`, params, { 39 return await serviceApi.get(`${apiInfo.api}${apiInfo.path}`, params, {
40 cache: cache, 40 cache: cache,
41 - code: 200,  
42 headers 41 headers
43 }); 42 });
44 } else if (apiInfo.ufo) { 43 } else if (apiInfo.ufo) {
45 return await ufoAPI[method](`${apiInfo.path || ''}`, params, { 44 return await ufoAPI[method](`${apiInfo.path || ''}`, params, {
46 cache: cache, 45 cache: cache,
47 - code: 200,  
48 headers 46 headers
49 }); 47 });
50 } else { 48 } else {
51 return await yohoApi[method](`${apiInfo.path || ''}`, params, { 49 return await yohoApi[method](`${apiInfo.path || ''}`, params, {
52 - code: 200,  
53 cache: cache, 50 cache: cache,
54 headers 51 headers
55 }); 52 });
@@ -42,7 +42,6 @@ module.exports = async(req, res, next) => { @@ -42,7 +42,6 @@ module.exports = async(req, res, next) => {
42 data: params, 42 data: params,
43 param: { 43 param: {
44 cache: cache, 44 cache: cache,
45 - code: 200  
46 } 45 }
47 }); 46 });
48 } else if (apiInfo.ufo) { 47 } else if (apiInfo.ufo) {
@@ -51,7 +50,6 @@ module.exports = async(req, res, next) => { @@ -51,7 +50,6 @@ module.exports = async(req, res, next) => {
51 url: apiInfo.path || '', 50 url: apiInfo.path || '',
52 data: params, 51 data: params,
53 param: { 52 param: {
54 - code: 200,  
55 cache: cache 53 cache: cache
56 } 54 }
57 }); 55 });
@@ -60,7 +58,6 @@ module.exports = async(req, res, next) => { @@ -60,7 +58,6 @@ module.exports = async(req, res, next) => {
60 data: params, 58 data: params,
61 url: apiInfo.path || '', 59 url: apiInfo.path || '',
62 param: { 60 param: {
63 - code: 200,  
64 cache: cache 61 cache: cache
65 } 62 }
66 }); 63 });