fix:修改APP端代理商员工和活动管理的接口
This commit is contained in:
parent
b4d5112698
commit
83be471093
@ -205,21 +205,19 @@ public class AppParentAgentActivityService implements IAppParentAgentActivitySer
|
||||
* @return 提示词内容
|
||||
*/
|
||||
private String buildCharacterTestPrompt(TestChildCharacterReq request) {
|
||||
StringBuilder prompt = new StringBuilder();
|
||||
prompt.append("请根据以下孩子信息分析其性格特点,并给出教育建议:\n");
|
||||
prompt.append("- 性别: ").append(request.getChildGender()).append("\n");
|
||||
prompt.append("- 出生日期: ").append(request.getChildBirthDate()).append("\n");
|
||||
prompt.append("- 星座: ").append(request.getConstellation() != null ? request.getConstellation() : "未知").append("\n");
|
||||
prompt.append("- 年级: ").append(request.getGrade()).append("\n");
|
||||
prompt.append("- 学习情况: ").append(request.getLearningSituation()).append("\n");
|
||||
prompt.append("- 偏科情况: ").append(request.getWeakSubject()).append("\n");
|
||||
prompt.append("\n请按照以下格式返回分析结果:\n");
|
||||
prompt.append("1. 性格分析:[具体分析内容]\n");
|
||||
prompt.append("2. 性格特征:[关键特征]\n");
|
||||
prompt.append("3. 教育建议:[针对性建议]\n");
|
||||
prompt.append("4. 性格类型:[简要分类]");
|
||||
|
||||
return prompt.toString();
|
||||
return "请根据以下孩子信息分析其性格特点,并给出教育建议:\n" +
|
||||
"- 性别: " + request.getChildGender() + "\n" +
|
||||
"- 出生日期: " + request.getChildBirthDate() + "\n" +
|
||||
"- 星座: " + (request.getConstellation() != null ? request.getConstellation() : "未知") + "\n" +
|
||||
"- 年级: " + request.getGrade() + "\n" +
|
||||
"- 学习情况: " + request.getLearningSituation() + "\n" +
|
||||
"- 偏科情况: " + request.getWeakSubject() + "\n" +
|
||||
"\n请按照以下格式返回分析结果:\n" +
|
||||
"1. 性格分析:[具体分析内容]\n" +
|
||||
"2. 性格特征:[关键特征]\n" +
|
||||
"3. 教育建议:[针对性建议]\n" +
|
||||
"4. 性格类型:[简要分类]";
|
||||
}
|
||||
|
||||
/**
|
||||
@ -239,7 +237,7 @@ public class AppParentAgentActivityService implements IAppParentAgentActivitySer
|
||||
// 检查是否为新的章节头部
|
||||
if (line.matches("^\\d+\\.\\s*[\\u4e00-\\u9fa5]+:.*|^\\s*[\\u4e00-\\u9fa5]+:.*")) {
|
||||
// 保存之前的章节
|
||||
if (currentHeader != null && currentSection.length() > 0) {
|
||||
if (currentHeader != null && !currentSection.isEmpty()) {
|
||||
setResponseField(resp, currentHeader, currentSection.toString().trim());
|
||||
}
|
||||
|
||||
@ -251,7 +249,7 @@ public class AppParentAgentActivityService implements IAppParentAgentActivitySer
|
||||
}
|
||||
} else if (currentHeader != null) {
|
||||
// 添加到当前章节内容
|
||||
if (currentSection.length() > 0) {
|
||||
if (!currentSection.isEmpty()) {
|
||||
currentSection.append("\n");
|
||||
}
|
||||
currentSection.append(line.trim());
|
||||
@ -259,7 +257,7 @@ public class AppParentAgentActivityService implements IAppParentAgentActivitySer
|
||||
}
|
||||
|
||||
// 处理最后一个章节
|
||||
if (currentHeader != null && currentSection.length() > 0) {
|
||||
if (currentHeader != null && !currentSection.isEmpty()) {
|
||||
setResponseField(resp, currentHeader, currentSection.toString().trim());
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user