Commit ee3f139c authored by alex yao's avatar alex yao

fix:callAgentApplication接口 fileUrls参数异常

parent 32012d83
......@@ -145,7 +145,7 @@ public class AgentApplicationTools {
query = content.toString();
}
query = "用户输入:" + query + "\n";
if (CollectionUtils.isNotEmpty(fileUrls)) {
if (CollectionUtils.isNotEmpty(fileUrls) && StringUtils.isNoneBlank(fileUrls.get(0))) {
query = query + "用户上传文件地址:" + JsonUtils.serialize(fileUrls) + "\n" + "文件格式:" + fileUrls.get(0).substring(fileUrls.get(0).lastIndexOf(".")) + "\n";
} else {
query = query + "用户上传文件地址:无\n" + "文件格式:无\n";
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment