zouxuan hace 1 año
padre
commit
111d3f7ae4

+ 4 - 4
mec-application/src/main/java/com/ym/mec/web/controller/AppVersionInfoController.java

@@ -47,9 +47,9 @@ public class AppVersionInfoController extends BaseController {
 			if("2.0.9".equals(appVersionInfo.getVersion()) && "android-education".equals(appVersionInfo.getPlatform())){
 				AppVersionInfoBak appVersionInfoBak = JSONObject.parseObject(JSONObject.toJSONString(appVersionInfo),AppVersionInfoBak.class);
 				appVersionInfoBak.setDownloadUrl(new String(appVersionInfo.getDownloadUrl()));
-				if (StringUtils.isEmpty(localVersion)) {
+				/*if (StringUtils.isEmpty(localVersion)) {
 					appVersionInfoBak.setIsForceUpdate(true);
-				}
+				}*/
 				return succeed(appVersionInfoBak);
 			}
 			//如果应用版本跨多个版本时若其中任何一个版本有强制更新,返回字段标记为强制更新
@@ -60,9 +60,9 @@ public class AppVersionInfoController extends BaseController {
 					appVersionInfo.setIsForceUpdate(true);
 				}
 			}
-			if (StringUtils.isEmpty(localVersion)) {
+			/*if (StringUtils.isEmpty(localVersion)) {
 				appVersionInfo.setIsForceUpdate(true);
-			}
+			}*/
 			return succeed(appVersionInfo);
 		}
 		return failed();