by Robin at 20240626

This commit is contained in:
Leufolium 2024-06-26 13:26:46 +08:00
parent 49e47c99d0
commit 7e8c00e926
1 changed files with 5 additions and 1 deletions

View File

@ -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 {