update:优化字数限制语言描述

develop
PL 2 months ago
parent 8057c0f18f
commit d038fd631e

@ -542,7 +542,7 @@ public class ChatMessageServiceImpl implements ChatMessageService {
throw new ServiceException(ErrorCode.PARAMS_ERROR.getCode(), "评语类型异常"); throw new ServiceException(ErrorCode.PARAMS_ERROR.getCode(), "评语类型异常");
} }
String limitChat = "。限制条件如下1.%s字左右2.直接返回评价的内容3.评价开头不要提示语4.评价开头不允许出现特殊字符;"; String limitChat = "。限制条件如下1.返回评价内容在%s字左右2.直接返回评价的内容3.评价开头不要提示语4.评价开头不允许出现特殊字符;";
int size = chatCommentsDto.getSize() > 0 ? chatCommentsDto.getSize() : 200; int size = chatCommentsDto.getSize() > 0 ? chatCommentsDto.getSize() : 200;
builder.append(String.format(limitChat, size)); builder.append(String.format(limitChat, size));

Loading…
Cancel
Save