fix apiservice
This commit is contained in:
@ -242,7 +242,7 @@ public class WebActivity extends BaseActivity {
|
||||
|
||||
|
||||
private void getToolsById() {
|
||||
RetrofitManager
|
||||
RetrofitManager.getInstance(this)
|
||||
.getApi()
|
||||
.getToolBoxById(mToolBoxEntity.getId())
|
||||
.subscribeOn(Schedulers.io())
|
||||
@ -268,11 +268,11 @@ public class WebActivity extends BaseActivity {
|
||||
}
|
||||
|
||||
public void getNewsCommentNum() {
|
||||
RetrofitManager.getComment()
|
||||
RetrofitManager.getInstance(this).getApi()
|
||||
.getNewsCommentnum(newsId)
|
||||
.subscribeOn(Schedulers.io())
|
||||
.observeOn(AndroidSchedulers.mainThread())
|
||||
.subscribe(new com.gh.gamecenter.retrofit.Response<List<CommentnumEntity>>() {
|
||||
.subscribe(new Response<List<CommentnumEntity>>() {
|
||||
|
||||
@Override
|
||||
public void onNext(List<CommentnumEntity> response) {
|
||||
|
||||
Reference in New Issue
Block a user