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 {