feat:重新处理七牛文件信息时间戳
This commit is contained in:
@@ -55,7 +55,6 @@ public class SchisandraOssQiniuController {
|
||||
* @description: 重命名文件
|
||||
* @param: [userId, bucket, oldFileName, newFileName]
|
||||
* @return: com.schisandra.oss.common.entity.Result
|
||||
* @author zlg
|
||||
* @date: 2024/6/27 9:41
|
||||
*/
|
||||
@PostMapping("renameQiniuFile")
|
||||
@@ -80,7 +79,6 @@ public class SchisandraOssQiniuController {
|
||||
* @description: 拷贝文件
|
||||
* @param: [userId, bucket, oldFilePath, newFilePath]
|
||||
* @return: com.schisandra.oss.common.entity.Result
|
||||
* @author zlg
|
||||
* @date: 2024/6/27 9:52
|
||||
*/
|
||||
@PostMapping("copyQiniuFile")
|
||||
|
@@ -112,7 +112,10 @@ public class QiNiuOssClient implements StandardOssClient {
|
||||
info.setName(item.key);
|
||||
}
|
||||
|
||||
info.setCreateTime(String.valueOf(item.putTime));
|
||||
String x = String.valueOf(item.putTime).substring(0, 10);
|
||||
long y = Long.parseLong(x)*1000;
|
||||
String result = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(new Date(y));
|
||||
info.setCreateTime(result);
|
||||
System.out.println(item.key);
|
||||
infos.add(info);
|
||||
}
|
||||
|
Reference in New Issue
Block a user