寻宝:机器人信息直接随机

This commit is contained in:
liangtongchuan
2021-01-26 14:50:49 +08:00
parent 47333ec2db
commit 4fdcac8d27
2 changed files with 14 additions and 4 deletions

View File

@@ -535,4 +535,11 @@ export function getAllAttrStage() {
export function getChineseName() {
return randomName.generate()
}
}
export function getRobotInfo() {
return {
robotRoleName: getChineseName(),
robotRoleId: genCode(8)
}
}