version:1.8.1

fix:
update:增加年级选择
This commit is contained in:
2024-06-12 16:05:33 +08:00
parent 512f2ed70c
commit 8024283819
17 changed files with 965 additions and 371 deletions

View File

@@ -359,6 +359,17 @@ public class OpenApkUtils {
/**
* page_navigate 写死传0
* <p>
* key:"page_navigate" 说明:
* 0主页
* 3收藏夹
* 4错题本
* 7考点学测
* 8一键诊断
* 组卷中心5
* 阶段测1
* 专项测2
* <p>
* appoint_subject_list 不需要传
* appoint_period_name 这个是学段,一定要传
* <p>
@@ -379,12 +390,15 @@ public class OpenApkUtils {
Toaster.show("应用未安装");
return false;
}
String grade = mMMKV.decodeString(CommonConfig.APPOINT_PERIOD_NAME, NAME_PRIMARY_SCHOOL);
ComponentName cn = new ComponentName(packageName, className);
Intent intent = new Intent();
intent.setComponent(cn);
intent.putExtra("page_navigate", page);
intent.putExtra("appoint_subject_name", subject);
intent.putExtra("appoint_period_name", NAME_HIGH_SCHOOL);
if (!TextUtils.isEmpty(subject)) {
intent.putExtra("appoint_subject_name", subject);
}
intent.putExtra("appoint_period_name", grade);
intent.addCategory(Intent.CATEGORY_LAUNCHER);
intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_EXCLUDE_FROM_RECENTS);
try {