From 45d78dfd17c180c7b8fa35d817fad4c4f21ccdd3 Mon Sep 17 00:00:00 2001 From: Leufolium Date: Mon, 24 Jun 2024 21:24:08 +0800 Subject: [PATCH] 1 --- app/mix/service/service.go | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/app/mix/service/service.go b/app/mix/service/service.go index e7491a4e..543fb724 100644 --- a/app/mix/service/service.go +++ b/app/mix/service/service.go @@ -4180,6 +4180,8 @@ func (s *Service) SaveAgreeCallback(ctx *gin.Context, req *hvyogoproto.ExtAgreeC func (s *Service) SaveSingleDistributeCallback(ctx *gin.Context, req *hvyogoproto.ExtSingleDistributeCallbackReq) (ec errcode.ErrCode) { ec = errcode.ErrCodeHvyogoSrvOk + var err error + // 解密AES bytes, err := hex.DecodeString(strings.ToLower(req.BusinessBody)) if err != nil { @@ -4202,6 +4204,14 @@ func (s *Service) SaveSingleDistributeCallback(ctx *gin.Context, req *hvyogoprot return } + defer func () { + if err != nil{ + + } + }() + + if vo.DistributeStatus != + // 更新数据 err = _DefaultSingleDistributeHis.OpUpdate(ctx, &single_distribute_his_proto.OpUpdateReq{ SingleDistributeHis: &dbstruct.SingleDistributeHis{