mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/per-boe/java-servers.git
synced 2025-12-13 21:06:48 +08:00
接口地址写错了
This commit is contained in:
@@ -288,7 +288,7 @@ public class OutSideDataServiceImpl implements IOutSideDataService {
|
|||||||
String token = TokenProxy.getToken(request);
|
String token = TokenProxy.getToken(request);
|
||||||
String type="application/json";
|
String type="application/json";
|
||||||
String[] headers=new String[] {"token",token,"Content-Type",type};
|
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>();
|
List<UserSimpleVo> uids=new ArrayList<UserSimpleVo>();
|
||||||
ObjectMapper mapper=new ObjectMapper();
|
ObjectMapper mapper=new ObjectMapper();
|
||||||
@@ -304,7 +304,7 @@ public class OutSideDataServiceImpl implements IOutSideDataService {
|
|||||||
log.error("接口未返回任何内容");
|
log.error("接口未返回任何内容");
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
log.info("返回的数据:"+responseStr);
|
//log.info("返回的数据:"+responseStr);
|
||||||
JsonNode rootNode= mapper.readTree(responseStr);
|
JsonNode rootNode= mapper.readTree(responseStr);
|
||||||
int code = rootNode.get("status").asInt();
|
int code = rootNode.get("status").asInt();
|
||||||
if(code!=200) {
|
if(code!=200) {
|
||||||
|
|||||||
@@ -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\">");
|
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>");
|
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> ";
|
orgInfo=" <span style=\"font-weight: 700;\">"+orgName+"</span> ";
|
||||||
}else {
|
}else {
|
||||||
//根据orgId获取
|
//根据orgId获取
|
||||||
Organization organ = orgService.get(orgId);
|
// Organization organ = orgService.get(orgId);
|
||||||
orgInfo=" <span style=\"font-weight: 700;\">"+organ.getNamePath()+"</span> ";
|
// 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"
|
htmlMsg.append("<div>您负责的"+orgInfo+"组织下, <span style=\"font-weight: 700;\">"+createBy+"</span> 提交了一门课程 <span style=\"font-weight: 700;\">"+courseName+" </span>,需要您审核,\r\n"
|
||||||
|
|||||||
Reference in New Issue
Block a user