version:1.8.9
fix:优化英语界面报错 update:用户页显示作业分发
This commit is contained in:
@@ -21,6 +21,7 @@ import com.uiui.zyos.config.CommonConfig;
|
||||
import com.uiui.zyos.jxw.JxwPackageConfig;
|
||||
|
||||
import java.lang.reflect.Type;
|
||||
import java.math.BigDecimal;
|
||||
import java.util.HashMap;
|
||||
import java.util.HashSet;
|
||||
import java.util.Set;
|
||||
@@ -383,15 +384,29 @@ public class OpenApkUtils {
|
||||
if (packageInfo == null) {
|
||||
return false;
|
||||
}
|
||||
long appVersionCode;
|
||||
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.P) {
|
||||
appVersionCode = packageInfo.getLongVersionCode();
|
||||
} else {
|
||||
appVersionCode = packageInfo.versionCode;
|
||||
}
|
||||
if (appVersionCode > 10) {
|
||||
return false;
|
||||
} else {
|
||||
// long appVersionCode;
|
||||
// if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.P) {
|
||||
// appVersionCode = packageInfo.getLongVersionCode();
|
||||
// } else {
|
||||
// appVersionCode = packageInfo.versionCode;
|
||||
// }
|
||||
// if (appVersionCode > 10) {
|
||||
// return false;
|
||||
// } else {
|
||||
// return true;
|
||||
// }
|
||||
String versionName = packageInfo.versionName;
|
||||
Log.e(TAG, "isNewAiApp: versionName = " + versionName);
|
||||
try {
|
||||
BigDecimal version = new BigDecimal("20240527");
|
||||
BigDecimal bigDecimal = new BigDecimal(versionName);
|
||||
if (bigDecimal.compareTo(version) > 0) {
|
||||
return true;
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
} catch (Exception e) {
|
||||
Log.e(TAG, "isNewAiApp: " + e.getMessage());
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user