Skip to content

Commit bce714e

Browse files
committed
调试report log接口
1 parent 9efc6fc commit bce714e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

VideoOS/VenvyLibrary/src/main/java/cn/com/venvy/common/report/ReportHelper.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ class ReportHelper {
4848
private static final String REPORT_AES_IV = "lx7eZhVoBEnKXELF";
4949
private static final String REPORT_SERVER_KEY = "info";
5050
private static final String KEY_ASYNC_TASK = "Report_report";
51-
private static final String REPORT_URL = "https://log.videojj.com/api/log";
51+
private static final String REPORT_URL = "https://os-saas.videojj.com/os-report-log/api/log";
5252

5353
//最大缓存条数
5454
private static final int MAX_CACHE_NUM = 5;
@@ -122,7 +122,7 @@ public Void doAsyncTask(Void... strings) throws Exception {
122122
HashMap<String, String> params = new HashMap<>();
123123
String signParams = VenvyAesUtil.encrypt(REPORT_AES_KEY, REPORT_AES_IV, gzipString);
124124
params.put(REPORT_SERVER_KEY, signParams);
125-
Request request = HttpRequest.put(REPORT_URL, params);
125+
Request request = HttpRequest.post(REPORT_URL, params);
126126
request.setPriority(Priority.LOW);
127127
mConnect.connect(request, new IRequestHandler() {
128128
@Override
@@ -136,8 +136,8 @@ public void requestFinish(Request request, IResponse response) {
136136
return;
137137
}
138138
JSONObject jsonObject = new JSONObject(body);
139-
if (jsonObject.has("logReport")) {
140-
int reportNum = jsonObject.optInt("logReport");
139+
if (jsonObject.has("data")) {
140+
int reportNum = jsonObject.optInt("data");
141141
Report.ReportLevel.buildLevelAble(reportNum);
142142
}
143143
} catch (Exception e) {

0 commit comments

Comments
 (0)