完善指令的授权

This commit is contained in:
dushixiang
2021-01-16 01:27:24 +08:00
parent 1a3f7acd1e
commit 44110722b2
13 changed files with 440 additions and 102 deletions

View File

@ -157,3 +157,17 @@ export const NT_PACKAGE = () => {
version: version
}
}
export function compare(p) {
return function (m, n) {
const a = m[p];
const b = n[p];
if (a > b) {
return 1;
}
if (a < b) {
return -1;
}
return 0;
}
}