|
|
@@ -51,7 +51,7 @@ public class WxCVideoServiceImpl implements WxCVideoService,IExcelExportServer { |
|
|
|
List authorlist = new ArrayList(); |
|
|
|
for (WxCVideoTable wxCVideoTable : TemplateVideo) { |
|
|
|
data.put("username",wxCVideoTable.getUserName()); |
|
|
|
data.put("current_time",new Date(System.currentTimeMillis())); |
|
|
|
data.put("current_time",new Date(System.currentTimeMillis()/1000)); |
|
|
|
|
|
|
|
Map<String,Object> avatar = new HashMap(); |
|
|
|
avatar.put("avatar_id",wxCVideoTable.getId()); |
|
|
@@ -59,14 +59,26 @@ public class WxCVideoServiceImpl implements WxCVideoService,IExcelExportServer { |
|
|
|
avatar.put("avatar_image",wxCVideoTable.getImage()); |
|
|
|
avatar.put("avatar_demo",wxCVideoTable.getDemo()); |
|
|
|
avatar.put("avatar_model",wxCVideoTable.getModel()); |
|
|
|
File modelFile = new File(wxCVideoTable.getModelPath()); |
|
|
|
//模板文件和预处理信息存放问题 |
|
|
|
try { |
|
|
|
File modelFile = new File(wxCVideoTable.getModelPath()); |
|
|
|
avatar.put("avatar_model_md5",getFileMD5(modelFile)); |
|
|
|
} catch (Exception e) { |
|
|
|
e.printStackTrace(); |
|
|
|
avatar.put("avatar_model_md5",wxCVideoTable.getModelMd5()); |
|
|
|
} |
|
|
|
|
|
|
|
avatar.put("avatar_demo_md5",getFileMD5(modelFile)); |
|
|
|
avatar.put("avatar_preinfo",wxCVideoTable.getPreInfo()); |
|
|
|
|
|
|
|
File preinfoFile = new File(wxCVideoTable.getPreInfoPath()); |
|
|
|
avatar.put("avatar_preinfo_md5",getFileMD5(preinfoFile)); |
|
|
|
avatar.put("expire_time",wxCVideoTable.getExpireTime()); |
|
|
|
try { |
|
|
|
File preinfoFile = new File(wxCVideoTable.getPreInfoPath()); |
|
|
|
avatar.put("avatar_preinfo_md5",getFileMD5(preinfoFile)); |
|
|
|
} catch (Exception e) { |
|
|
|
e.printStackTrace(); |
|
|
|
avatar.put("avatar_preinfo_md5",wxCVideoTable.getPreInfoMd5()); |
|
|
|
} |
|
|
|
|
|
|
|
avatar.put("avatar_preinfo",wxCVideoTable.getPreInfo()); |
|
|
|
avatar.put("expire_time",wxCVideoTable.getExpireTime().getTime()/1000); |
|
|
|
avatar.put("class", wxCVideoTable.getClassType()); |
|
|
|
authorlist.add(avatar); |
|
|
|
data.put("authorlist",authorlist); |
|
|
|