diff --git a/app/mix/service/apiservice.go b/app/mix/service/apiservice.go index 6a123432..bcc1dc9e 100644 --- a/app/mix/service/apiservice.go +++ b/app/mix/service/apiservice.go @@ -3496,9 +3496,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 { diff --git a/app/mix/service/service.go b/app/mix/service/service.go index 6f79bdb1..1d2e47dd 100644 --- a/app/mix/service/service.go +++ b/app/mix/service/service.go @@ -4253,11 +4253,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 {