接口地址写错了

This commit is contained in:
daihh
2023-07-05 18:41:57 +08:00
parent f42ca816e3
commit f6e6cd2ec8
2 changed files with 7 additions and 6 deletions

View File

@@ -288,7 +288,7 @@ public class OutSideDataServiceImpl implements IOutSideDataService {
String token = TokenProxy.getToken(request);
String type="application/json";
String[] headers=new String[] {"token",token,"Content-Type",type};
String url= getBaseUrl("/org/getUserMessageToDai");
String url= getBaseUrl("/user/getUserMessageToDai");
//返回信息
List<UserSimpleVo> uids=new ArrayList<UserSimpleVo>();
ObjectMapper mapper=new ObjectMapper();
@@ -304,7 +304,7 @@ public class OutSideDataServiceImpl implements IOutSideDataService {
log.error("接口未返回任何内容");
return null;
}
log.info("返回的数据:"+responseStr);
//log.info("返回的数据:"+responseStr);
JsonNode rootNode= mapper.readTree(responseStr);
int code = rootNode.get("status").asInt();
if(code!=200) {

View File

@@ -535,7 +535,7 @@ public class CourseManageApi extends ApiBaseController{
}
}
private String createEmailHtml(String name,String orgId, String orgName,String createBy,String courseName) {
private String createEmailHtml(String name,String orgId, String orgName,String createBy,String courseName) throws Exception {
StringBuffer htmlMsg=new StringBuffer("<div style=\"line-height:30px;border:2px solid #2990ca;padding:20px\">");
htmlMsg.append("<div style=\"height:60px; font-size:30px;text-align:right;font-weight: 200;\">BOE学习平台</div>");
@@ -549,8 +549,9 @@ public class CourseManageApi extends ApiBaseController{
orgInfo=" <span style=\"font-weight: 700;\">"+orgName+"</span> ";
}else {
//根据orgId获取
Organization organ = orgService.get(orgId);
orgInfo=" <span style=\"font-weight: 700;\">"+organ.getNamePath()+"</span> ";
// Organization organ = orgService.get(orgId);
// orgInfo=" <span style=\"font-weight: 700;\">"+organ.getNamePath()+"</span> ";
throw new Exception("无组织机构路径");
}
htmlMsg.append("<div>您负责的"+orgInfo+"组织下, <span style=\"font-weight: 700;\">"+createBy+"</span> 提交了一门课程 <span style=\"font-weight: 700;\">"+courseName+" </span>,需要您审核,\r\n"
@@ -579,7 +580,7 @@ public class CourseManageApi extends ApiBaseController{
// }
Course course = courseService.get(audit.getCourseId());
if(StringUtils.isBlank(course.getOrgId())) {
if(StringUtils.isBlank(course.getOrgId())){
return badRequest("请先在课程开发中配置用户");
}
String error=checkForSubmit(course);