批量导入用户功能

This commit is contained in:
undefined committed 2020-08-07 13:15:40 +08:00
1 parent 21347e75d4
commit 37d449d42f
5 files changed
+40 -7

No files matched your search

+1 -1
View File
@@ -173,7 +173,7 @@ export async function inc(_id: number, field: string, n = 1) {
export async function create(
mail: string, uname: string, password: string,
uid: number, regip = '127.0.0.1', priv = PRIV.PRIV_DEFAULT,
uid?: number, regip = '127.0.0.1', priv = PRIV.PRIV_DEFAULT,
) {
const salt = String.random();
if (!uid) uid = await system.inc('user');