|
@@ -189,12 +189,18 @@ public class HagContentServiceImpl implements HagContentService {
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
- private String md5PlayUrl(String key, String url){
|
|
|
|
|
|
+ /*private String md5PlayUrl(String key, String url){
|
|
SimpleDateFormat sdf = new SimpleDateFormat("YYYYMMddHHmm");
|
|
SimpleDateFormat sdf = new SimpleDateFormat("YYYYMMddHHmm");
|
|
long endTime = System.currentTimeMillis() + (3 * 60 * 1000L);
|
|
long endTime = System.currentTimeMillis() + (3 * 60 * 1000L);
|
|
Date date = new Date(endTime);
|
|
Date date = new Date(endTime);
|
|
String time = sdf.format(date);
|
|
String time = sdf.format(date);
|
|
String md5Url = MD5.MD5Encode(key + time + url);
|
|
String md5Url = MD5.MD5Encode(key + time + url);
|
|
return "/" + time + "/" + md5Url + url;
|
|
return "/" + time + "/" + md5Url + url;
|
|
|
|
+ }*/
|
|
|
|
+
|
|
|
|
+ private String md5PlayUrl(String key, String url){
|
|
|
|
+ long time = System.currentTimeMillis() / 1000;
|
|
|
|
+ String md5Url = MD5.MD5Encode(key + url + time);
|
|
|
|
+ return "/"+ md5Url + "/" + time + url;
|
|
}
|
|
}
|
|
}
|
|
}
|