Commit 91f58893 authored by eddie.woo's avatar eddie.woo

fix gift有效期

parent f9fcba59
......@@ -261,7 +261,7 @@ public class DidiFileUploadService extends BaseService {
String[] params = tmpPost.getURI().getQuery().split("&");
Long time = new Long(params[0].replace("expire=", ""));
Date useFullDate = new Date();
useFullDate.setTime(new Date().getTime() + time - (3600*1000*24*2));
useFullDate.setTime(1000 * time); //此处是unix time
fileUpload.setUsefulEndTime(useFullDate);
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