...
|
...
|
@@ -31,7 +31,17 @@ const hotfix = { |
|
|
|
|
|
http.get(apiFile, response => {
|
|
|
res.setHeader('Content-Type', 'application/json');
|
|
|
response.pipe(res);
|
|
|
|
|
|
if (response.statusCode === 200) {
|
|
|
response.pipe(res);
|
|
|
} else {
|
|
|
return res.json({
|
|
|
code: 400,
|
|
|
message: 'client_type or app_version error',
|
|
|
data: {}
|
|
|
});
|
|
|
}
|
|
|
|
|
|
}).on('error', err => {
|
|
|
logger.error('hot fix v1 error:', err);
|
|
|
return res.json({
|
...
|
...
|
|