1
This commit is contained in:
@@ -58,7 +58,7 @@ public class SocialMediaPromptController {
|
||||
templateInfo.put("key", key);
|
||||
templateInfo.put("description", TEMPLATE_DESCRIPTIONS.get(key));
|
||||
|
||||
String template = getTemplate(key);
|
||||
String template = getTemplateFromRedis(key);
|
||||
templateInfo.put("template", template);
|
||||
templateInfo.put("isDefault", template == null);
|
||||
|
||||
@@ -92,7 +92,7 @@ public class SocialMediaPromptController {
|
||||
return response;
|
||||
}
|
||||
|
||||
String template = getTemplate(key);
|
||||
String template = getTemplateFromRedis(key);
|
||||
Map<String, Object> data = new HashMap<>();
|
||||
data.put("key", key);
|
||||
data.put("description", TEMPLATE_DESCRIPTIONS.get(key));
|
||||
@@ -202,7 +202,7 @@ public class SocialMediaPromptController {
|
||||
/**
|
||||
* 从 Redis 获取模板
|
||||
*/
|
||||
private String getTemplate(String key) {
|
||||
private String getTemplateFromRedis(String key) {
|
||||
if (redisTemplate == null) {
|
||||
return null;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user