切换主体
This commit is contained in:
parent
6aaf9f3e12
commit
a7f41d1c27
|
|
@ -2,7 +2,9 @@ package biz
|
|||
|
||||
import (
|
||||
"context"
|
||||
"errors"
|
||||
"fmt"
|
||||
"gorm.io/gorm"
|
||||
errPb "voucher/api/err"
|
||||
"voucher/internal/biz/bo"
|
||||
"voucher/internal/biz/vo"
|
||||
|
|
@ -18,9 +20,9 @@ func (this *VoucherBiz) WechatNotifyConsumer(ctx context.Context, ip string, req
|
|||
order, err := this.getOrder(ctx, req)
|
||||
if err != nil {
|
||||
// 系统订单不存在
|
||||
//if errors.Is(err, gorm.ErrRecordNotFound) {
|
||||
// return nil
|
||||
//}
|
||||
if errors.Is(err, gorm.ErrRecordNotFound) {
|
||||
return nil
|
||||
}
|
||||
return err
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue