You've already forked FrameTour-BE
获取时间
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
package com.ycwl.basic.repository;
|
||||
|
||||
import cn.hutool.core.date.DateUtil;
|
||||
import com.ycwl.basic.utils.JacksonUtil;
|
||||
import com.ycwl.basic.mapper.TaskMapper;
|
||||
import com.ycwl.basic.mapper.VideoMapper;
|
||||
@@ -53,8 +54,8 @@ public class VideoTaskRepository {
|
||||
var jsonArray = paramJson.getJSONArray(any.get());
|
||||
if (jsonArray != null && !jsonArray.isEmpty()) {
|
||||
JacksonUtil.JSONObjectCompat jsonObject = jsonArray.get(0);
|
||||
if (jsonObject.getLong("createTime") != null) {
|
||||
shotTime = new Date(jsonObject.getLong("createTime"));
|
||||
if (jsonObject.getString("createTime") != null) {
|
||||
shotTime = DateUtil.parse(jsonObject.getString("createTime"));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user