Merge remote-tracking branch 'origin/hotfix/appversion'
Showing
1 changed file
with
15 additions
and
10 deletions
@@ -109,16 +109,21 @@ const getPlatForm = (req) => { | @@ -109,16 +109,21 @@ const getPlatForm = (req) => { | ||
109 | if (yoho.app_version) { | 109 | if (yoho.app_version) { |
110 | yoho.app_version = _.toString(yoho.app_version); | 110 | yoho.app_version = _.toString(yoho.app_version); |
111 | arrs = yoho.app_version.split('.'); | 111 | arrs = yoho.app_version.split('.'); |
112 | - if (arrs.length > 2) { | ||
113 | - if (arrs[0] && +arrs[0] < 4) { | ||
114 | - isNewVersion = false; | ||
115 | - } else if (arrs[1] && +arrs[1] < 9) { | ||
116 | - isNewVersion = false; | ||
117 | - } else if (arrs[2] && +arrs[2] <= 0) { | ||
118 | - isNewVersion = false; | ||
119 | - } else { | ||
120 | - isNewVersion = true; | ||
121 | - } | 112 | + // if (arrs.length > 2) { |
113 | + // if (arrs[0] && +arrs[0] < 4) { | ||
114 | + // isNewVersion = false; | ||
115 | + // } else if (arrs[1] && +arrs[1] < 9) { | ||
116 | + // isNewVersion = false; | ||
117 | + // } else if (arrs[2] && +arrs[2] <= 0) { | ||
118 | + // isNewVersion = false; | ||
119 | + // } else { | ||
120 | + // isNewVersion = true; | ||
121 | + // } | ||
122 | + // } | ||
123 | + if (arrs[0] >= 5) { | ||
124 | + isNewVersion = true; | ||
125 | + } else if (+arrs[0] === 4 && +arrs[1] === 9 && +arrs[2] > 0) { | ||
126 | + isNewVersion = true; | ||
122 | } | 127 | } |
123 | } | 128 | } |
124 | 129 |
-
Please register or login to post a comment