Commit 8693a18a by qwmqiuwenmin

fix

parent 5ca807e5
...@@ -122,7 +122,7 @@ public class MaterialApiServiceImpl implements MaterialApiService { ...@@ -122,7 +122,7 @@ public class MaterialApiServiceImpl implements MaterialApiService {
url = materialDTO.getLink(); url = materialDTO.getLink();
} }
if(fileType != null){ if(fileType != null){
JSONResponse jp = qywxSuiteApiService.uploadMedia(enterprise.getCorpid(), config.getWxSuiteid(), getFileByte(url), fileType.getCode()); JSONResponse jp = qywxSuiteApiService.uploadMedia(enterprise.getCorpid(), config.getWxSuiteid(), getFileByte(url),url.split(".")[1], fileType.getCode());
if(jp.getErrorCode() == 0){ if(jp.getErrorCode() == 0){
materialDTO.setWxLastUploadTime(new Date()); materialDTO.setWxLastUploadTime(new Date());
materialDTO.setMediaId(jp.getResult().toString()); materialDTO.setMediaId(jp.getResult().toString());
......
...@@ -36,7 +36,7 @@ public class MyApplicationContextAware implements ApplicationContextAware { ...@@ -36,7 +36,7 @@ public class MyApplicationContextAware implements ApplicationContextAware {
QuartzTaskDTO taskDTO = new QuartzTaskDTO(); QuartzTaskDTO taskDTO = new QuartzTaskDTO();
taskDTO.setReferId(id); taskDTO.setReferId(id);
taskDTO.setTaskMethod("quartzUpdateMessageStatus"); taskDTO.setTaskMethod("quartzUpdateMessageStatus");
taskDTO.setTaskService("com.gic.haoban.app.customer.service.api.service.messageLogApiService"); taskDTO.setTaskService("com.gic.haoban.app.customer.service.api.service.MessageLogApiService");
return taskDTO; return taskDTO;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment