APP统计-应用数据, 数据库升级适配

This commit is contained in:
kehaoyuan
2018-08-22 10:44:56 +08:00
parent 5b1d0d5821
commit f414ecee32
4 changed files with 29 additions and 14 deletions

View File

@ -21,7 +21,7 @@ import org.json.JSONObject;
*/
public class LogUtils {
public static void uploadDevice(LunchType launchType) { // todo 对接数据
public static void uploadDevice(LunchType launchType) {
JSONObject object = new JSONObject();
Application application = HaloApp.getInstance().getApplication();
try {
@ -59,7 +59,7 @@ public class LogUtils {
public static void uploadQuestionReadTime(String tracers, int readTime, Questions questions) {
JSONObject object = new JSONObject();
try {
object.put("subject", "answer");
object.put("subject", "question");
object.put("community_id", UserManager.getInstance().getCommunity().getId());
object.put("community_name", UserManager.getInstance().getCommunity().getName());
object.put("question_id", questions.getId());