nacos config

This commit is contained in:
eson 2023-09-21 18:57:18 +08:00
parent dc489b1ca3
commit 822a2163a0

View File

@ -173,6 +173,7 @@ func (u *FsUserModel) RegisterByFusen(ctx context.Context, token *auth.RegisterT
var err error
err = tx.Model(&FsUser{}).Where("email = ?", token.Email).Take(user).Error
logx.Info("success", token.TraceId)
if err == gorm.ErrRecordNotFound {
FirstName := token.Extend["first_name"].(string)
@ -193,9 +194,11 @@ func (u *FsUserModel) RegisterByFusen(ctx context.Context, token *auth.RegisterT
return err
}
logx.Info("success", token.TraceId)
// 继承guest_id的资源表
err = InheritGuestIdResource(tx, user.Id, token.GuestId, func(txResouce, txUserMaterial, txUserInfo *gorm.DB) error {
logx.Info("success", token.TraceId)
userProfile := &UserProfile{
FirstName: FirstName,
LastName: LastName,