fix apiservice

This commit is contained in:
CsHeng
2017-09-11 15:37:31 +08:00
parent c487dc2f03
commit 47f7d70cfb
99 changed files with 721 additions and 555 deletions

View File

@ -2,7 +2,7 @@ package com.gh.common.util;
import android.content.Context;
import com.gh.base.AppController;
import com.halo.assistant.AppController;
import com.lightgame.download.DownloadEntity;
import com.gh.gamecenter.retrofit.Response;
import com.gh.gamecenter.retrofit.RetrofitManager;
@ -53,7 +53,7 @@ public class DataLogUtils {
RequestBody body = RequestBody.create(MediaType.parse("application/json"),
new JSONObject(params).toString());
RetrofitManager.getData().postLog(body)
RetrofitManager.getInstance(context).getData().postLog(body)
.subscribeOn(Schedulers.io())
.observeOn(AndroidSchedulers.mainThread())
.subscribe(new Response<ResponseBody>());