This commit is contained in:
chenjuntao
2018-09-29 16:27:14 +08:00
parent 60625a7bff
commit c2168eaf02
15 changed files with 100 additions and 17 deletions

View File

@ -39,6 +39,7 @@ import com.gh.gamecenter.retrofit.OkHttpCache;
import com.gh.gamecenter.retrofit.Response;
import com.gh.gamecenter.retrofit.RetrofitManager;
import com.lightgame.adapter.BaseRecyclerAdapter;
import com.lightgame.utils.Utils;
import org.json.JSONArray;
import org.json.JSONException;
@ -138,7 +139,7 @@ public class MessageDetailAdapter extends BaseRecyclerAdapter<ViewHolder> {
return;
}
isLoading = true;
RetrofitManager.getInstance(mContext).getApi().getComment(mConcernEntity.getId(), 10, mPage)
RetrofitManager.getInstance(mContext).getApi().getComment(mConcernEntity.getId(), 10, mPage, Utils.getTime(mContext))
.subscribeOn(Schedulers.io())
.observeOn(AndroidSchedulers.mainThread())
.subscribe(new Response<List<CommentEntity>>() {