nacos config

This commit is contained in:
eson
2023-09-21 18:12:22 +08:00
parent b5cdaab24c
commit 11cdcefa4c
7 changed files with 105 additions and 18 deletions

View File

@@ -216,7 +216,7 @@ func (u *FsUserModel) RegisterByFusen(ctx context.Context, token *auth.RegisterT
err = txUserInfo.Where("module = 'profile' and user_id = ?", uinfo.UserId).Take(nil).Error
// txUserInfo.Statement.Table
logx.Error(err, "找到user_id1")
if err != nil {
if err == gorm.ErrRecordNotFound {
err = txUserInfo.Create(uinfo).Error
@@ -225,6 +225,7 @@ func (u *FsUserModel) RegisterByFusen(ctx context.Context, token *auth.RegisterT
}
}
} else {
logx.Error("找到user_id2")
err = fssql.MetadataModulePATCH(txUserInfo, "profile", FsUserInfo{}, metadata, "user_id = ?", *uinfo.UserId)
if err != nil {
return err