| | |
| | | import com.qxueyou.scc.school.service.IHandoutService; |
| | | |
| | | /** |
| | | * 文档处理消息队列接收服务 |
| | | * 文档处理消息队列接收服务 |
| | | * |
| | | * @author 德虎 |
| | | * @author 德虎 |
| | | * |
| | | */ |
| | | @Service("DocdealMsgDealService") |
| | |
| | | // @Override |
| | | // public void doHandle(Message msg, ConsumeContext context) { |
| | | // |
| | | // //TODO 严格异常处理,两次就直接返回,暂时一次 |
| | | // //TODO 严格异常处理,两次就直接返回,暂时一次 |
| | | // try { |
| | | // // get params |
| | | // String docPath = msg.getUserProperties("docPath"); |
| | |
| | | // ";userId:" + msg.getUserProperties("userId") + |
| | | // ";uploadModule:" + msg.getUserProperties("uploadModule") ; |
| | | // |
| | | // log.error( businessId + " :上传讲义ppt消息发送失败:" + e , e); |
| | | // log.error( businessId + " :上传讲义ppt消息发送失败:" + e , e); |
| | | // onsExceptionLogService.logSaveExceptionLog(getTopic(), "", businessId , desp ); |
| | | // } |
| | | // |
| | | // } |
| | | // |
| | | /** |
| | | * 配置项ons-docdeal-receive-urls配置了多个ip地址,如果其中包含本机地址,说明支持文档处理 |
| | | * 配置项ons-docdeal-receive-urls配置了多个ip地址,如果其中包含本机地址,说明支持文档处理 |
| | | */ |
| | | protected boolean turnOn(){ |
| | | String docdealUrls =aliOnsConfig.getDocdealReceiveUrls(); |