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