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

@ -41,6 +41,8 @@ import rx.android.schedulers.AndroidSchedulers;
import rx.functions.Func1;
import rx.schedulers.Schedulers;
import static com.taobao.accs.ACCSManager.mContext;
/**
* Created by khy on 2016/8/22.
* 新闻搜索界面
@ -183,7 +185,7 @@ public class NewsSearchActivity extends BaseActivity {
// DataUtils.onEvent(this, "游戏新闻搜索", searchKey);
// DataCollectionUtils.uploadSearch(this, searchKey, "游戏新闻搜索");
RetrofitManager.getApi().getSearchNews(gameId, searchKey, page, 20)
RetrofitManager.getInstance(mContext).getApi().getSearchNews(gameId, searchKey, page, 20)
.map(new Func1<List<NewsEntity>, List<NewsEntity>>() {
@Override
public List<NewsEntity> call(List<NewsEntity> list) {
@ -266,7 +268,7 @@ public class NewsSearchActivity extends BaseActivity {
"列表", "游戏新闻搜索", newsEntity.getTitle());
// 统计阅读量
NewsUtils.statNewsViews(newsEntity.getId());
NewsUtils.statNewsViews(mContext, newsEntity.getId());
NewsDetailActivity.startNewsDetailActivity(NewsSearchActivity.this, newsEntity,
mEntrance + "+(游戏新闻搜索[" + searchKey + "])");
}