From 7e8c00e92690ae31c3d5a4a9e79042d07f8e7722 Mon Sep 17 00:00:00 2001 From: Leufolium Date: Wed, 26 Jun 2024 13:26:46 +0800 Subject: [PATCH] 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 {