Skip to content

feat: 优化抢红包功能#14

Closed
SummerOneTwo wants to merge 1 commit intocwuom:masterfrom
SummerOneTwo:feature/red-packet-fix
Closed

feat: 优化抢红包功能#14
SummerOneTwo wants to merge 1 commit intocwuom:masterfrom
SummerOneTwo:feature/red-packet-fix

Conversation

@SummerOneTwo
Copy link

优化内容

  1. 增加通知(包含金额和来源)
  2. 增加高斯随机延迟
  3. 增加每分钟抢红包数量限制
  4. 增加私聊红包开关等防检测功能

Copilot AI review requested due to automatic review settings March 4, 2026 17:52
@SummerOneTwo SummerOneTwo changed the title feat: 浼樺寲鎶㈢孩鍖呭姛鑳? feat: 优化抢红包功能 Mar 4, 2026
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@SummerOneTwo SummerOneTwo force-pushed the feature/red-packet-fix branch 4 times, most recently from c528fb3 to 10d4f49 Compare March 4, 2026 18:15
…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
@SummerOneTwo SummerOneTwo force-pushed the feature/red-packet-fix branch from 10d4f49 to e38a9af Compare March 4, 2026 18:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants