This commit is contained in:
2026-02-12 15:42:09 +08:00
parent ca6dcc1b24
commit ce34e426c4
2 changed files with 20 additions and 0 deletions

View File

@@ -64,10 +64,13 @@ func (l *VehicleCallbackLogic) Handle(r *http.Request) error {
)
}
l.Infof("tianyuan vehicle callback start, api_id=%s, order_no=%s", apiID, orderNo)
bodyBytes, err := io.ReadAll(r.Body)
if err != nil {
return errors.Wrapf(xerr.NewErrCode(xerr.SERVER_COMMON_ERROR), "读取回调 Body 失败: %v", err)
}
l.Infof("tianyuan vehicle callback body received, api_id=%s, order_no=%s, body_len=%d", apiID, orderNo, len(bodyBytes))
// 1. 根据订单号找到订单
order, err := l.svcCtx.OrderModel.FindOneByOrderNo(l.ctx, orderNo)