mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-19 09:38:19 +08:00
setting: 优化默认值插入
This commit is contained in:
1 parent
06ff754af3
commit
f3be3fc787
3 files changed
+8
-9
No files matched your search
@@ -199,7 +199,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 = 0, regip = '127.0.0.1', priv = PRIV.PRIV_DEFAULT,
|
||||
) {
|
||||
const salt = String.random();
|
||||
if (!uid) uid = await system.inc('user');
|
||||
|
||||
Reference in new issue
Block a user