支付回调以后更新订单状态

This commit is contained in:
2026-09-11 17:06:04 +08:00
parent a1c377489c
commit 4ff974eb8d
11 changed files with 235 additions and 99 deletions
+3 -3
View File
@@ -60,7 +60,7 @@ type (
OrderInfo(ctx context.Context, in *IdRequest, opts ...grpc.CallOption) (*Response, error)
UpdateOrderDeliverStatus(ctx context.Context, in *UpdateOrderDeliverStatusRequest, opts ...grpc.CallOption) (*UpdateOrderDeliverStatusResponse, error)
GetOrderInfo(ctx context.Context, in *GetOrderInfoRequest, opts ...grpc.CallOption) (*OrderInfoResponse, error)
UpdateOrderDPayStatus(ctx context.Context, in *UpdateOrderPayStatusRequest, opts ...grpc.CallOption) (*UpdateOrderPayStatusResponse, error)
UpdateOrderPayStatus(ctx context.Context, in *UpdateOrderPayStatusRequest, opts ...grpc.CallOption) (*UpdateOrderPayStatusResponse, error)
}
defaultOrder struct {
@@ -174,7 +174,7 @@ func (m *defaultOrder) GetOrderInfo(ctx context.Context, in *GetOrderInfoRequest
return client.GetOrderInfo(ctx, in, opts...)
}
func (m *defaultOrder) UpdateOrderDPayStatus(ctx context.Context, in *UpdateOrderPayStatusRequest, opts ...grpc.CallOption) (*UpdateOrderPayStatusResponse, error) {
func (m *defaultOrder) UpdateOrderPayStatus(ctx context.Context, in *UpdateOrderPayStatusRequest, opts ...grpc.CallOption) (*UpdateOrderPayStatusResponse, error) {
client := order.NewOrderClient(m.cli.Conn())
return client.UpdateOrderDPayStatus(ctx, in, opts...)
return client.UpdateOrderPayStatus(ctx, in, opts...)
}