From 7e8c00e92690ae31c3d5a4a9e79042d07f8e7722 Mon Sep 17 00:00:00 2001 From: Leufolium Date: Wed, 26 Jun 2024 13:26:46 +0800 Subject: [PATCH 1/2] by Robin at 20240626 --- app/mix/service/service.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/app/mix/service/service.go b/app/mix/service/service.go index b5247905..7a257cd1 100644 --- a/app/mix/service/service.go +++ b/app/mix/service/service.go @@ -4246,11 +4246,15 @@ func (s *Service) SaveSingleDistributeCallback(ctx *gin.Context, req *hvyogoprot logger.Error("_DefaultSingleDistributeHis ClearLock fail, err: %v", err) } } + errorDesc := "" + if err != nil { + errorDesc = err.Error() + } err = _DefaultSingleDistributeHis.OpUpdate(ctx, &single_distribute_his_proto.OpUpdateReq{ SingleDistributeHis: &dbstruct.SingleDistributeHis{ Id: goproto.String(vo.RequestNo), FinalStatus: goproto.Int64(finalStatus), - ErrorDesc: goproto.String(err.Error()), + ErrorDesc: goproto.String(errorDesc), }, }) if err != nil { From af835ff28475e4e886e3c95c6d34068db3be75e2 Mon Sep 17 00:00:00 2001 From: Leufolium Date: Wed, 26 Jun 2024 13:30:32 +0800 Subject: [PATCH 2/2] by Robin at 20240626 --- app/mix/service/apiservice.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/mix/service/apiservice.go b/app/mix/service/apiservice.go index b93b708e..ab76cf97 100644 --- a/app/mix/service/apiservice.go +++ b/app/mix/service/apiservice.go @@ -3474,9 +3474,10 @@ func (s *Service) ApiHvyogoSingleDistribute(ctx *gin.Context, req *hvyogoproto.A } // 发起单侧提现申请 + diamonds := int64(float64(distributeAmount) / 10) resp, err := _DefaultVas.UnilaterallyHvyogoWithdrawApply(ctx, &vasproto.UnilaterallyWithdrawApplyReq{ BaseRequest: req.BaseRequest, - Diamonds: int64(distributeAmount), + Diamonds: diamonds, }, extWithdrawFunc) ec, err = errs.DealVasErr(err) if err != nil {