Skip to content

Commit

Permalink
add Example
Browse files Browse the repository at this point in the history
add filter example
  • Loading branch information
cloudxin authored Oct 10, 2023
1 parent 8c7aef7 commit c574081
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions docs/zh/订单过滤器.md
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,12 @@ Filter = "exit 0"
Filter = "jq -r '.ClientDealProposal.Proposal.Provider' | grep -q '^f01000$'"
```

- 例子: 只接受来自 `f1aaaaaaaaaaaaaaaaaaaaaaaaa``f1bbbbbbbbbbbbbbbbbbbbbbbbb``f1ccccccccccccccccccccccccc` 地址发送过来的订单

```toml
Filter = "jq -e '.Proposal.Client == \"f1aaaaaaaaaaaaaaaaaaaaaaaaa\" or .Proposal.Client == \"f1bbbbbbbbbbbbbbbbbbbbbbbbb\" or .Proposal.Client == \"f1ccccccccccccccccccccccccc\"'"
```

- 例子: 使用 `python` 脚本

```toml
Expand Down

0 comments on commit c574081

Please sign in to comment.