1.考虑到retrofit 头header 有d-time 字段 舍弃UploadADBean dtime字段
This commit is contained in:
@@ -48,9 +48,9 @@ public class SystemService extends Service implements AppnetCallback, NetStateCh
|
|||||||
private static final int WHAT_PERIODIC_REQUEST = 4;
|
private static final int WHAT_PERIODIC_REQUEST = 4;
|
||||||
|
|
||||||
// 请求间隔(8小时,正式环境)
|
// 请求间隔(8小时,正式环境)
|
||||||
private static final long REQUEST_INTERVAL = 8 * 60 * 60 * 1000;
|
// private static final long REQUEST_INTERVAL = 8 * 60 * 60 * 1000;
|
||||||
// 测试用短间隔
|
// 测试用短间隔
|
||||||
// private static final long REQUEST_INTERVAL = 5 * 60 * 1000; // 5分钟
|
private static final long REQUEST_INTERVAL = 5 * 60 * 1000; // 5分钟
|
||||||
//持久化存储成功请求时间
|
//持久化存储成功请求时间
|
||||||
private static final String KEY_LAST_SUCCESS_TIME = "last_success_time";
|
private static final String KEY_LAST_SUCCESS_TIME = "last_success_time";
|
||||||
private boolean isFirstRequestDone = false; // 首次请求是否完成(重启后重置为false)
|
private boolean isFirstRequestDone = false; // 首次请求是否完成(重启后重置为false)
|
||||||
|
|||||||
@@ -39,7 +39,6 @@ public class DownLoadAdPresenter {
|
|||||||
uploadADBean.setCpu(cpuId);
|
uploadADBean.setCpu(cpuId);
|
||||||
uploadADBean.setMac(DeviceUtil.getEthernetMac());
|
uploadADBean.setMac(DeviceUtil.getEthernetMac());
|
||||||
uploadADBean.setRecords(recordsBeans);
|
uploadADBean.setRecords(recordsBeans);
|
||||||
uploadADBean.setDtime(String.valueOf(System.currentTimeMillis()));
|
|
||||||
biz.postDownloadAd(uploadADBean, new OnBaseListener() {
|
biz.postDownloadAd(uploadADBean, new OnBaseListener() {
|
||||||
@Override
|
@Override
|
||||||
public void onResponse(String result) {
|
public void onResponse(String result) {
|
||||||
|
|||||||
Reference in New Issue
Block a user