This commit is contained in:
laodaming 2023-08-29 15:31:33 +08:00
commit 03988243bf
3 changed files with 5 additions and 4 deletions

View File

@ -6,11 +6,12 @@ import (
"errors" "errors"
"fusenapi/constants" "fusenapi/constants"
"fusenapi/utils/mq_consumer_factory" "fusenapi/utils/mq_consumer_factory"
"github.com/streadway/amqp"
"github.com/zeromicro/go-zero/core/logx"
"log" "log"
"strings" "strings"
"sync" "sync"
"github.com/streadway/amqp"
"github.com/zeromicro/go-zero/core/logx"
) )
type RabbitMqHandle struct { type RabbitMqHandle struct {

View File

@ -143,7 +143,7 @@ func (u *FsUserModel) RegisterByFusen(ctx context.Context, token *auth.RegisterT
logcontent := "" logcontent := ""
defer func() { defer func() {
logx.Info("aaaa:", logcontent, err) logx.Info("aaaa:", logcontent, " ", err.Error())
}() }()
err = u.db.WithContext(ctx).Transaction(func(tx *gorm.DB) error { err = u.db.WithContext(ctx).Transaction(func(tx *gorm.DB) error {

View File

@ -10,7 +10,7 @@ Auth:
AccessSecret: fusen2023 AccessSecret: fusen2023
AccessExpire: 2592000 AccessExpire: 2592000
RefreshAfter: 1592000 RefreshAfter: 1592000
SourceRabbitMq: #amqp://rabbit001:rabbit001129@110.41.19.98:5672 SourceRabbitMq: "amqp://rabbit001:rabbit001129@110.41.19.98:5672"
AWS: AWS:
S3: S3:
Credentials: Credentials: