version:1.9

fix:
add:
This commit is contained in:
2022-03-30 14:04:59 +08:00
parent 9b3a1c8b92
commit ed6f11b717
21 changed files with 324 additions and 144 deletions

View File

@@ -547,7 +547,7 @@ public class MessageReceiver extends XGPushBaseReceiver {
break;
case JIGUANG_PHONE:
ToastUtil.debugShow("收到推送消息: 电话管控");
setPhone(context, extras);
setPhone(extras);
break;
case JIGUANG_DISABLE_UPDATAE:
ToastUtil.debugShow("收到推送消息: 禁止升级");
@@ -647,7 +647,7 @@ public class MessageReceiver extends XGPushBaseReceiver {
case JIGUANG_APP_GALLERY:
case JIGUANG_APP_MUSIC:
ToastUtil.debugShow("收到推送消息: 系统APP管控");
hideDesktopIcon(context);
hideDesktopIcon();
break;
case JIGUANG_SEARCH_TOPIC:
ToastUtil.debugShow("收到推送消息: 搜题开关");
@@ -655,7 +655,7 @@ public class MessageReceiver extends XGPushBaseReceiver {
break;
case JIGUANG_PHONE_LIST:
ToastUtil.debugShow("收到推送消息: 电话白名单管控");
setPhone(context, extras);
setPhone(extras);
break;
case JIGUANG_CHANGE_COMBO:
ToastUtil.debugShow("更换套餐");
@@ -668,7 +668,7 @@ public class MessageReceiver extends XGPushBaseReceiver {
case JIGUANG_APP_BROWSER:
ToastUtil.debugShow("收到推送消息: 系统APP管控");
Log.e(TAG, "processCustomMessage: " + extras);
hideDesktopIcon(context);
hideDesktopIcon();
break;
case JIGUANG_BIND_UNBIND:
ToastUtil.debugShow("老师授权/取消授权");
@@ -1104,8 +1104,8 @@ public class MessageReceiver extends XGPushBaseReceiver {
context.sendBroadcast(cameraIntent);
}
private void setPhone(Context context, String jsonString) {
HTTPInterface.getSystemSettings(context);
private void setPhone(String jsonString) {
HTTPInterface.getSystemSettings();
}
@SuppressLint("NewApi")
@@ -1113,7 +1113,7 @@ public class MessageReceiver extends XGPushBaseReceiver {
JSONObject jsonObject = JSON.parseObject(jsonString);
String is_upgrade = jsonObject.getString("is_upgrade");
String packageName = jsonObject.getString("package");
String nowApplist = JGYUtils.getString(context.getContentResolver(), CommonConfig.QCH_APP_FORBID);
String nowApplist = JGYUtils.getString(context.getContentResolver(), CommonConfig.QCH_APP_FORBID);
List<String> applist = new ArrayList<>(Arrays.asList(nowApplist.split(",")));
if ("0".equals(is_upgrade)) {
if (applist.contains(packageName)) {
@@ -1126,8 +1126,8 @@ public class MessageReceiver extends XGPushBaseReceiver {
applist.add(packageName);
}
}
JGYUtils.putString(context.getContentResolver(), CommonConfig.QCH_APP_FORBID, String.join(",", applist));
Log.e("setAppUpdate", JGYUtils.getString(context.getContentResolver(), CommonConfig.QCH_APP_FORBID));
JGYUtils.putString(context.getContentResolver(), CommonConfig.QCH_APP_FORBID, String.join(",", applist));
Log.e("setAppUpdate", JGYUtils.getString(context.getContentResolver(), CommonConfig.QCH_APP_FORBID));
}
private void setLock_screen(Context context, String jsonString) {
@@ -1344,8 +1344,8 @@ public class MessageReceiver extends XGPushBaseReceiver {
}
}
private void hideDesktopIcon(Context context) {
HTTPInterface.getSystemSettings(context);
private void hideDesktopIcon() {
HTTPInterface.getSystemSettings();
}
private void searchTopic(Context context, String jsonString) {