Skip to content

Commit

Permalink
fix: check error rule
Browse files Browse the repository at this point in the history
Signed-off-by: TripleZ <[email protected]>
  • Loading branch information
Triple-Z committed Sep 17, 2024
1 parent 88cb83a commit 027a251
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/analyser/wechat/wechat.go
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,9 @@ func (w Wechat) GetAccountsAndTags(o *ir.Order, cfg *config.Config, target, prov
log.Fatalf("Error in SplitFindTimeStampInterval: %v", err)
}
}
if r.MinPrice != nil && r.MaxPrice != nil && *r.MinPrice > *r.MaxPrice {
log.Fatalf("Error rule: minPrice > maxPrice!")
}
if r.MinPrice != nil && o.Money < *r.MinPrice {
match = false
}
Expand Down

0 comments on commit 027a251

Please sign in to comment.