This commit is contained in:
苏尹岚
2021-04-13 14:03:11 +08:00
parent d56f4ab906
commit 4f7fd9f1e2
2 changed files with 7 additions and 1 deletions

View File

@@ -200,6 +200,7 @@ func RegisterUserWithMobile(ctx *jxcontext.Context, user *model.User, mobileVeri
if inAuthInfo != nil {
if inAuthInfo.AuthBindInfo.Type == dingding.AuthTypeStaff {
user.Type |= model.UserTypeOperator
user.Type |= model.UserTypeRole
} else if user.Mobile != nil {
user.Type |= model.UserTypeStoreBoss
}