1.考虑到retrofit 头header 有d-time 字段 舍弃UploadADBean dtime字段

This commit is contained in:
2025-11-26 20:38:26 +08:00
parent 7df8c91156
commit 824c5fed37
2 changed files with 2 additions and 3 deletions

View File

@@ -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

View File

@@ -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) {