...
|
...
|
@@ -14,12 +14,12 @@ const hotfix = { |
|
|
let clientType = req.body.client_type || '';
|
|
|
let version = req.body.app_version || '';
|
|
|
|
|
|
let apiFile = 'http://cdn.yoho.cn/app-hotfix/yohobuy/';
|
|
|
let apiFile = 'http://cdn.yoho.cn/app-hotfix2/yohobuy/';
|
|
|
|
|
|
if (clientType.toLowerCase() === 'ios' && version) {
|
|
|
apiFile += `ios/${version}/api.json`;
|
|
|
apiFile += `ios/${version}/api.json?_=` + (new Date()).getTime();
|
|
|
} else if (clientType.toLowerCase() === 'android' && version) {
|
|
|
apiFile += `android/${version}/api.json`;
|
|
|
apiFile += `android/${version}/api.json?_=` + (new Date()).getTime();
|
|
|
} else {
|
|
|
return res.json({
|
|
|
code: 400,
|
...
|
...
|
|