Commit 2b8ec774 by 谢海旭

202601月中版本 招聘管理

1 parent c5c75397
...@@ -707,16 +707,28 @@ public class RecruitmentDemandService { ...@@ -707,16 +707,28 @@ public class RecruitmentDemandService {
} }
// 5. 获取H5页面URL // 5. 获取H5页面URL
String h5BaseUrl = env.getProperty("dj.technical.supervisor.h5.base.url"); String h5Url = env.getProperty("dj.technical.supervisor.h5.recruitment.url");
String h5RecruitmentListPath = env.getProperty("dj.technical.supervisor.h5.recruitment.list.path");
if (StringUtils.isBlank(h5BaseUrl) || StringUtils.isBlank(h5RecruitmentListPath)) { if (StringUtils.isBlank(h5Url)) {
log.error("{} - H5页面配置参数缺失,h5BaseUrl:{}, h5RecruitmentListPath:{}", logDesc, h5BaseUrl, h5RecruitmentListPath); log.error("{} - H5页面配置参数缺失,配置项:dj.technical.supervisor.h5.recruitment.url", logDesc);
return; return;
} }
// 拼接H5完整URL // 添加技术督导名称和手机号参数
String h5Url = h5BaseUrl + h5RecruitmentListPath; try {
// URL编码技术督导名称,避免中文乱码
String encodedName = java.net.URLEncoder.encode(technicalSupervisorName != null ? technicalSupervisorName : "", "UTF-8");
String encodedPhone = java.net.URLEncoder.encode(technicalSupervisorPhone != null ? technicalSupervisorPhone : "", "UTF-8");
// 判断原始路径是否已包含参数
if (h5Url.contains("?")) {
h5Url = h5Url + "&name=" + encodedName + "&phone=" + encodedPhone;
} else {
h5Url = h5Url + "?name=" + encodedName + "&phone=" + encodedPhone;
}
} catch (Exception e) {
log.warn("{} - URL编码异常,使用原始参数", logDesc, e);
}
// 6. 发送H5卡片通知消息 // 6. 发送H5卡片通知消息
boolean success = sendDJCloudWechatTextCardMessage( boolean success = sendDJCloudWechatTextCardMessage(
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!