Closed
Conversation
There was a problem hiding this comment.
Pull request overview
本 PR 旨在优化“自动抢红包”功能的风控规避能力与可观测性(通知/延迟/限频/私聊开关),并补充数据库侧的显示名称查询能力以支持通知展示来源。
Changes:
- 新增抢到红包后的通知展示(包含金额与来源名称),并通过 Hook OpenLuckyMoney 回调确认是否真正抢到与金额。
- 将随机延迟升级为高斯(正态分布)延迟,并新增“每分钟上限/随机跳过/私聊红包开关”等防检测配置项。
- 在数据库 API 中新增
getDisplayName(wxid)用于解析群名/联系人备注名/昵称。
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 6 comments.
| File | Description |
|---|---|
| app/src/main/java/moe/ouom/wekit/ui/creator/dialog/item/chat/risk/WeRedPacketConfigDialog.kt | 新增/调整自动抢红包相关配置项(通知、私聊、延迟、限频、随机跳过)。 |
| app/src/main/java/moe/ouom/wekit/hooks/sdk/api/WeDatabaseApi.kt | 新增根据 wxid 查询显示名称的接口,供通知来源展示使用。 |
| app/src/main/java/moe/ouom/wekit/hooks/item/chat/risk/WeRedPacketAuto.kt | 增加限频/随机跳过/私聊过滤、高斯延迟,并新增 Open 回调 Hook + 通知逻辑。 |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
app/src/main/java/moe/ouom/wekit/hooks/item/chat/risk/WeRedPacketAuto.kt
Outdated
Show resolved
Hide resolved
app/src/main/java/moe/ouom/wekit/hooks/item/chat/risk/WeRedPacketAuto.kt
Outdated
Show resolved
Hide resolved
app/src/main/java/moe/ouom/wekit/hooks/item/chat/risk/WeRedPacketAuto.kt
Show resolved
Hide resolved
app/src/main/java/moe/ouom/wekit/hooks/item/chat/risk/WeRedPacketAuto.kt
Outdated
Show resolved
Hide resolved
app/src/main/java/moe/ouom/wekit/hooks/item/chat/risk/WeRedPacketAuto.kt
Show resolved
Hide resolved
app/src/main/java/moe/ouom/wekit/hooks/sdk/api/WeDatabaseApi.kt
Outdated
Show resolved
Hide resolved
c528fb3 to
10d4f49
Compare
…ti-detection - Hook OpenLuckyMoney.onGYNetEnd for grab result confirmation - Only notify on successful grab with source name and amount - Add Gaussian delay, rate limiting, random skip, private chat toggle - Add WeDatabaseApi.getDisplayName() for wxid resolution - Address Copilot review: race condition fix, SQL escape, Locale, TTL cleanup
10d4f49 to
e38a9af
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
优化内容