1. 添加对Redis连接失败异常的捕获,尝试分析Redis连接失败原因

2. 在配置文件dev和test中添加Redis密码

(cherry picked from commit 9d8c1488c9)
This commit is contained in:
EnderByEndera
2024-05-11 16:47:42 +08:00
committed by PushM
parent 0b0f6de297
commit 6cb44f6a80
3 changed files with 11 additions and 1 deletions

View File

@@ -182,7 +182,7 @@ public class TaskController implements TaskControllerApi {
}
}
if (!errorIds.isEmpty()) {
return new ResponseResult(400, "id or status is invalid")
return ResponseResult.invalid()
.setData("tasks_id", errorIds)
.setData("success", false);
}