|
@@ -111,7 +111,6 @@ public class MaterialInfoServiceImpl extends ServiceImpl<MaterialInfoMapper, Mat
|
|
|
public Map<String, Object> insert(JSONObject jsonObject) {
|
|
|
Map<String, Object> resultMap = new HashMap<>();
|
|
|
try {
|
|
|
- // Boolean isVideo = imgLocation(jsonObject.getString("url"));
|
|
|
String type = jsonObject.getString("type");
|
|
|
MaterialInfo info = new MaterialInfo();
|
|
|
info.setId(jsonObject.getString("code"));
|
|
@@ -277,8 +276,7 @@ public class MaterialInfoServiceImpl extends ServiceImpl<MaterialInfoMapper, Mat
|
|
|
@Override
|
|
|
public void run() {
|
|
|
try {
|
|
|
- System.err.println("开始获取素材基本信息");
|
|
|
- System.err.println(materialInfo);
|
|
|
+ log.info("获取素材基本信息,code:{}", materialInfo.getCode());
|
|
|
if (!Check.isNull(materialInfo)) {
|
|
|
String url = materialInfo.getUrl();
|
|
|
long l = System.currentTimeMillis();
|
|
@@ -300,7 +298,6 @@ public class MaterialInfoServiceImpl extends ServiceImpl<MaterialInfoMapper, Mat
|
|
|
materialParameter.setWidth(String.valueOf(m.getVideo().getSize().getWidth()));
|
|
|
// 视频高
|
|
|
materialParameter.setHeight(String.valueOf(m.getVideo().getSize().getHeight()));
|
|
|
-
|
|
|
FileInputStream fis = new FileInputStream(file);
|
|
|
FileChannel fc = fis.getChannel();
|
|
|
BigDecimal fileSize = new BigDecimal(fc.size());
|