Commit 0bfe3782 authored by chase's avatar chase

修改gift上传失效时间-2天

parent 673007bb
...@@ -261,7 +261,7 @@ public class DidiFileUploadService extends BaseService { ...@@ -261,7 +261,7 @@ public class DidiFileUploadService extends BaseService {
String[] params = tmpPost.getURI().getQuery().split("&"); String[] params = tmpPost.getURI().getQuery().split("&");
Long time = new Long(params[0].replace("expire=", "")); Long time = new Long(params[0].replace("expire=", ""));
Date useFullDate = new Date(); Date useFullDate = new Date();
useFullDate.setTime(new Date().getTime() + time - 7200); useFullDate.setTime(new Date().getTime() + time - (3600*1000*24*2));
fileUpload.setUsefulEndTime(useFullDate); fileUpload.setUsefulEndTime(useFullDate);
return fileUpload; return fileUpload;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment