Skip to content

Commit

Permalink
namespace 使用错误处理
Browse files Browse the repository at this point in the history
  • Loading branch information
wzhsh90 committed Jul 15, 2024
1 parent 60576aa commit e9d0367
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions fenxiao/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ func (c *Api) CreateOrder(address *trade.Address, cargo []trade.Cargo, offers []
Flow: "fenxiao",
}
resp := &model.CreateOrderResp{}
err := c.client.Do(models.NewRequest(consts.FENXIAO_NAMESPACE, req), resp)
err := c.client.Do(models.NewRequest(consts.TRADE_SPACE, req), resp)
if err != nil {
return nil, err
}
Expand All @@ -58,7 +58,7 @@ func (c *Api) OrderPreview(address *trade.Address, cargo []trade.Cargo) (*model.
Flow: "saleproxy",
}
resp := &model.CreateOrderPreviewResp{}
err := c.client.Do(models.NewRequest(consts.FENXIAO_NAMESPACE, req), resp)
err := c.client.Do(models.NewRequest(consts.TRADE_SPACE, req), resp)
if err != nil {
return nil, err
}
Expand Down

0 comments on commit e9d0367

Please sign in to comment.