diff --git a/modules/smithy/api_refuse.go b/modules/smithy/api_refuse.go index 535c7a95f..f9820a327 100644 --- a/modules/smithy/api_refuse.go +++ b/modules/smithy/api_refuse.go @@ -25,11 +25,7 @@ func (this *apiComp) Refuse(session comm.IUserSession, req *pb.SmithyRefuseReq) if err != nil { var errCustom = new(comm.CustomError) if errors.As(err, &errCustom) { - errdata = &pb.ErrorData{ - Code: errCustom.Code, - Title: errCustom.Code.ToString(), - Message: err.Error(), - } + this.module.Debug(errCustom.Code.String()) } else { errdata = &pb.ErrorData{ Code: pb.ErrorCode_DBError, diff --git a/modules/smithy/model_trade.go b/modules/smithy/model_trade.go index 74dd50a81..9b417cac0 100644 --- a/modules/smithy/model_trade.go +++ b/modules/smithy/model_trade.go @@ -9,6 +9,7 @@ import ( "go_dreamfactory/sys/configure" "math/rand" + uuid "github.com/satori/go.uuid" "go.mongodb.org/mongo-driver/bson/primitive" "go.mongodb.org/mongo-driver/mongo" "go.mongodb.org/mongo-driver/x/bsonx" @@ -106,6 +107,7 @@ func (s *modelTrade) addCustomer(uid string, num int32) (*pb.DBCustomer, error) CustomerId: randCustomerId, SuitId: suitId, EquipCount: s.module.modelStove.StoveSkillBuyEquip(uid), + Uuid: uuid.NewV4().String(), }) } @@ -160,6 +162,7 @@ func (s *modelTrade) updateCustomer(uid string, customerId int32) (*pb.DBCustome CustomerId: randCustomerId, SuitId: suiteId, EquipCount: s.module.modelStove.StoveSkillBuyEquip(uid), + Uuid: uuid.NewV4().String(), }) }