Commit eb25a18e by Hayreal

sop触达中心-执行sop企微任务

1 parent f8f7406e
......@@ -4,6 +4,7 @@ public enum ResultEnum {
CHAT_TYPE_EMPTY(40000001,"群发任务类型chatType不能为空!"),
ATT_TYPE_ERROR(40000002,"不支持的群发任务类型!"),
GET_INIPROGRAM_URL_FAIL(40000003,"获取短链失败!"),
UPLOAD_MEDIA_FAIL(40000004,"上传媒体文件到企微失败!"),
;
private int code;
......
......@@ -150,6 +150,9 @@ public class ExecuteTaskService {
workWechatDTO.setAttType(attType);
workWechatDTO.setSendType(sendType);
String mediaId = workWechatService.uploadMediaGetMediaId(workWechatDTO);
if (StringUtils.isEmpty(mediaId)){
throw new AdminException(ResultEnum.UPLOAD_MEDIA_FAIL);
}
attContent.setMediaId(mediaId);
}
return contentList;
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!