Feature issues1130

This commit is contained in:
zhangyujiu
2021-01-26 16:17:29 +08:00
parent 22801846e4
commit 2aadb78301
8 changed files with 363 additions and 14 deletions

View File

@ -767,4 +767,27 @@ public class LogUtils {
}
LoghubUtils.log(object, "event", false);
}
public static void uploadPackageSkip(String action, String gameId, String gameName) {
JSONObject object = new JSONObject();
JSONObject payloadObject = new JSONObject();
try {
object.put("event", "external_jump");
object.put("action", action);
if (!TextUtils.isEmpty(gameId)&&!TextUtils.isEmpty(gameName)) {
payloadObject.put("game_id", gameId);
payloadObject.put("game_name", gameName);
object.put("payload", payloadObject);
}
object.put("meta", getMetaObject());
} catch (JSONException e) {
e.printStackTrace();
}
if (BuildConfig.DEBUG) {
Utils.log("LogUtils->" + object.toString());
}
LoghubUtils.log(object, "event", false);
}
}