url添加Timestamp逻辑修改

This commit is contained in:
huangzhuanghua
2016-09-28 18:47:14 +08:00
parent 6546b580e9
commit 09a0eabc48
30 changed files with 181 additions and 179 deletions

View File

@ -21,10 +21,8 @@ import com.android.volley.VolleyError;
import com.gh.base.AppController;
import com.gh.base.DetailActivity;
import com.gh.common.constant.Config;
import com.gh.common.constant.Constants;
import com.gh.common.util.DataUtils;
import com.gh.common.util.DisplayUtils;
import com.gh.common.util.TimestampUtils;
import com.gh.gamecenter.entity.GameEntity;
import com.gh.gamecenter.entity.NewsEntity;
import com.gh.gamecenter.eventbus.EBConcernChanged;
@ -222,8 +220,7 @@ public class NewsDetailActivity extends DetailActivity implements OnClickListene
private void getNewsDigest(final String news_id) {
JsonObjectExtendedRequest request = new JsonObjectExtendedRequest(
TimestampUtils.addTimestamp(
Config.HOST + "v1d45/news/" + news_id + "/digest", Constants.NEWS_CD),
Config.HOST + "v1d45/news/" + news_id + "/digest",
new Response.Listener<JSONObject>() {
@Override
public void onResponse(JSONObject response) {
@ -324,9 +321,7 @@ public class NewsDetailActivity extends DetailActivity implements OnClickListene
return;
}
JsonObjectExtendedRequest gameRequest = new JsonObjectExtendedRequest(
TimestampUtils.addTimestamp(
Config.HOST + "v2d0/game/" + gameId + "/news_digest",
Constants.GAME_CD),
Config.HOST + "v2d0/game/" + gameId + "/news_digest",
new Response.Listener<JSONObject>() {
@Override
public void onResponse(JSONObject response) {