version:1.0.1

fix:
update:基本跳转对接完成
This commit is contained in:
2025-12-02 10:44:51 +08:00
parent 3001c33bc6
commit a82d7a3744
32 changed files with 1619 additions and 196 deletions

View File

@@ -3,8 +3,11 @@ package com.xwad.os.jxw;
import android.content.Context;
import android.net.ConnectivityManager;
import android.net.NetworkInfo;
import android.text.TextUtils;
import android.util.Log;
import com.xwad.os.utils.OpenApkUtils;
import java.text.SimpleDateFormat;
import java.util.Date;
@@ -13,8 +16,6 @@ public class Util {
return new SimpleDateFormat("yyyyMMdd").format(new Date());
}
public static boolean isNetworkAvailable(Context context) {
ConnectivityManager connectivityManager = (ConnectivityManager) context.getSystemService(Context.CONNECTIVITY_SERVICE);
NetworkInfo[] allNetworkInfo = connectivityManager.getAllNetworkInfo();
@@ -53,5 +54,35 @@ public class Util {
// }
}
public static void downloadClickListener(Context context, String str, String str2, String str3, String str4) {
OpenApkUtils.getInstance().openJxwApp("" + str + "," + str2 + "," + str3 + "," + str.substring(str.lastIndexOf(".") + 1) + "," + str4);
}
public static String checkGrade(String str) {
if (TextUtils.isEmpty(str)) {
return "初中";
}
switch (str) {
case "一年级":
case "二年级":
case "三年级":
case "四年级":
case "五年级":
case "六年级":
return "小学";
case "初中六年级":
case "七年级":
case "八年级":
case "九年级":
return "初中";
case "高一":
case "高二":
case "高三":
return "高中";
default:
return "初中";
}
}
}