统一api错误提示

This commit is contained in:
whyour
2022-05-17 23:31:29 +08:00
parent 0927682abf
commit 1695b8c0fe
7 changed files with 10 additions and 10 deletions
+1 -1
View File
@@ -129,7 +129,7 @@ export default (app: Router) => {
if (config.writePathList.every((x) => !path.startsWith(x))) {
return res.send({
code: 430,
data: '文件路径禁止访问',
message: '文件路径禁止访问',
});
}
if (!originFilename) {