1.转换下载(旧)及相关数据的埋点方式 https://gitlab.ghzs.com/stats/stats-issues/issues/130

2.移除DataService相关代码
 - 相关接口部分移到ApiService部分用LogHub代替
This commit is contained in:
kehaoyuan@ghzhushou.com
2020-04-23 17:24:47 +08:00
parent 29edcdca4b
commit 37745ca548
24 changed files with 78 additions and 206 deletions

View File

@ -46,7 +46,7 @@ public class NewsUtils {
* 统计阅读量
*/
public static void statNewsViews(Context context, String news_id) {
RetrofitManager.getInstance(context).getData().postNewsViews(news_id)
RetrofitManager.getInstance(context).getApi().postArticleVisit(news_id)
.subscribeOn(Schedulers.io())
.observeOn(AndroidSchedulers.mainThread())
.subscribe(new Response<ResponseBody>());