🚧 improve image encryption and decryption

This commit is contained in:
2025-03-22 13:05:50 +08:00
parent 3a03224f8c
commit 781a71a27c
39 changed files with 1274 additions and 977 deletions

View File

@@ -60,7 +60,11 @@ func (l *PhoneLoginLogic) PhoneLogin(r *http.Request, req *types.PhoneLoginReque
if userInfo == nil {
uid := idgen.NextId()
uidStr := strconv.FormatInt(uid, 10)
avatar := utils2.GenerateAvatar(uidStr)
avatar, err := l.svcCtx.PN.Generate(uidStr, false).ToBase64()
if err != nil {
tx.Rollback()
return nil, err
}
name := randomname.GenerateName()
male := constant2.Male
user := &model.ScaAuthUser{