McFish鱼竿独立计算合成,修复钓鱼概率异常,qqwife删除群老婆重复文本,wife添加抽老婆下载失败时使用本地文件.#1294
Open
FengLing11 wants to merge 14 commits intoFloatTech:masterfrom
Open
McFish鱼竿独立计算合成,修复钓鱼概率异常,qqwife删除群老婆重复文本,wife添加抽老婆下载失败时使用本地文件.#1294FengLing11 wants to merge 14 commits intoFloatTech:masterfrom
FengLing11 wants to merge 14 commits intoFloatTech:masterfrom
Conversation
Refactor to use local variables for probabilities in fishing logic to prevent global state issues in multiplayer scenarios.
Refactor synthesis logic to group materials and determine success rate individually. Update database and construct result message based on synthesis outcomes.
Added a fallback mechanism for loading images in the guessing game, attempting local file retrieval if remote download fails.
fumiama
requested changes
Mar 6, 2026
Member
fumiama
left a comment
There was a problem hiding this comment.
@fangliuyu @vatebur please review the algorithm.
| ), | ||
| ) | ||
| }) | ||
| groupCount := len(list) / 3 |
Member
There was a problem hiding this comment.
len(list)就一定是3的倍数吗?如果不是,会直接panic。
Comment on lines
+467
to
+493
| idx1 := list[g*3] | ||
| idx2 := list[g*3+1] | ||
| idx3 := list[g*3+2] | ||
|
|
||
| thingInfo1 := articles[idx1] | ||
| thingInfo2 := articles[idx2] | ||
| thingInfo3 := articles[idx3] | ||
|
|
||
| thingInfo1.Number = 0 | ||
| thingInfo2.Number = 0 | ||
| thingInfo3.Number = 0 | ||
|
|
||
| err = dbdata.updateUserThingInfo(uid, thingInfo1) | ||
| if err != nil { | ||
| ctx.SendChain(message.Text("[ERROR at pole.go.12]:", err)) | ||
| return | ||
| } | ||
| err = dbdata.updateUserThingInfo(uid, thingInfo2) | ||
| if err != nil { | ||
| ctx.SendChain(message.Text("[ERROR at pole.go.12]:", err)) | ||
| return | ||
| } | ||
| err = dbdata.updateUserThingInfo(uid, thingInfo3) | ||
| if err != nil { | ||
| ctx.SendChain(message.Text("[ERROR at pole.go.12]:", err)) | ||
| return | ||
| } |
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.
No description provided.