|
|
@@ -1323,6 +1323,8 @@ public class CommonUtil {
|
|
|
JSONObject jsonObject = new JSONObject();
|
|
|
jsonObject.put("device_id", DeviceUtil.getDeviceId(context));
|
|
|
jsonObject.put("release_task_id", taskReleaseEty.getId());
|
|
|
+ jsonObject.put("create_time", System.currentTimeMillis() / 1000L);//这里添加时间戳,防止用户抓包后重复使用
|
|
|
+ jsonObject.put("app_version", BuildConfig.VERSION_CODE);
|
|
|
SheepApp.getInstance().getNetComponent().getApiService().acceptedTask(jsonObject)
|
|
|
.subscribeOn(Schedulers.io())
|
|
|
.observeOn(AndroidSchedulers.mainThread())
|
|
|
@@ -1363,6 +1365,8 @@ public class CommonUtil {
|
|
|
JSONObject jsonObject = new JSONObject();
|
|
|
jsonObject.put("device_id", DeviceUtil.getDeviceId(context));
|
|
|
jsonObject.put("release_task_id", gameEntity.getRelease_task().getId());
|
|
|
+ jsonObject.put("create_time", System.currentTimeMillis() / 1000L);//这里添加时间戳,防止用户抓包后重复使用
|
|
|
+ jsonObject.put("app_version", BuildConfig.VERSION_CODE);
|
|
|
SheepApp.getInstance().getNetComponent().getApiService().acceptedTask(jsonObject)
|
|
|
.subscribeOn(Schedulers.io())
|
|
|
.observeOn(AndroidSchedulers.mainThread())
|