diff --git a/common/src/main/java/com/yunbao/common/manager/InstructorRemarkManager.java b/common/src/main/java/com/yunbao/common/manager/InstructorRemarkManager.java index 2b81e5e09..3fc229e58 100644 --- a/common/src/main/java/com/yunbao/common/manager/InstructorRemarkManager.java +++ b/common/src/main/java/com/yunbao/common/manager/InstructorRemarkManager.java @@ -2,6 +2,7 @@ package com.yunbao.common.manager; import android.content.Context; import android.os.Handler; +import android.util.Log; import com.alibaba.fastjson.JSON; import com.alibaba.fastjson.JSONArray; @@ -39,13 +40,18 @@ public class InstructorRemarkManager extends BaseCacheManager { * @return */ public Map getInstructorRemark() { - if (null == instructorRemarkMap) { - String string = getString(KEY_INSTRUCTOR_REMARK); - if (!StringUtil.isEmpty(string)) { - instructorRemarkMap = JSON.parseObject(string, new TypeReference>() { + try { + if (null == instructorRemarkMap) { + String string = getString(KEY_INSTRUCTOR_REMARK); + if (!StringUtil.isEmpty(string)) { + instructorRemarkMap = JSON.parseObject(string, new TypeReference>() { - }); + }); + } } + }catch (Exception e){ + Log.i("remark", "getInstructorRemark: "+getString(KEY_INSTRUCTOR_REMARK)); + e.printStackTrace(); } if (instructorRemarkMap == null) { instructorRemarkMap = new HashMap<>(); diff --git a/common/src/main/java/com/yunbao/common/utils/LogUtil.java b/common/src/main/java/com/yunbao/common/utils/LogUtil.java index d94e6e365..7515ca027 100644 --- a/common/src/main/java/com/yunbao/common/utils/LogUtil.java +++ b/common/src/main/java/com/yunbao/common/utils/LogUtil.java @@ -251,7 +251,9 @@ public class LogUtil { body.put("appVersion", CommonAppConfig.getInstance().getVersion()); OkHttpClient client = new OkHttpClient.Builder().connectTimeout(3, TimeUnit.SECONDS).build(); - Request request = new Request.Builder().url("https://newht.yaoulive.com/index.php/api/error_log/report") //无法接受文件 + Request request = new Request.Builder() + .url("https://tools.yutou233.cn/public/file/request.do")//临时上报地址,可接受文件 + //.url("https://newht.yaoulive.com/index.php/api/error_log/report") //无法接受文件 .post(requestBody).build(); client.newCall(request).enqueue(new Callback() { @Override