Skip to content

Commit 6de0320

Browse files
committed
🐛 修复: 在 indexSet 方法中添加对数值范围的检查;在 sendImg 方法中添加权限检查
1 parent 523d0b1 commit 6de0320

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

apps/admin/index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ export class Admin_Index extends plugin {
5252
if (typeof _key == "object") {
5353
if (_key.type === "number") {
5454
if (!regRet[3]) return
55-
value = checkNumberValue(regRet[3])
55+
value = checkNumberValue(regRet[3], _key.limit)
5656
} else {
5757
value = value == "开启"
5858
}
@@ -66,6 +66,7 @@ export class Admin_Index extends plugin {
6666
}
6767

6868
async sendImg(e) {
69+
if (!common.checkPermission(e, "master")) return
6970
let data = this.getIndexSetData()
7071
return sendImg(e, data)
7172
}

0 commit comments

Comments
 (0)