[change] setup api checking

This commit is contained in:
Max 2022-10-28 20:08:09 +08:00
parent 43c1dfd895
commit c45eafbc0c

View file

@ -67,8 +67,8 @@ func runSetup(c *gin.Context) {
return
}
if hasInstalled(cfg) {
c.JSON(403, gin.H{"code": 400, "message": "应用已安装, 删除 .env 文件后重试"})
if !Check() {
c.JSON(403, gin.H{"code": 400, "message": "应用已安装, 删除 .env 文件和 db 目录后重试"})
return
}