feat: 新增战斗技能效果648-677
All checks were successful
ci/woodpecker/push/my-first-workflow Pipeline was successful

This commit is contained in:
xinian
2026-03-30 12:11:44 +08:00
committed by cnb
parent 184fe9f59d
commit 7a7fae05ea
11 changed files with 573 additions and 154 deletions

View File

@@ -81,7 +81,7 @@ func (s *TalkService) Cheak(mapid uint32, flag int) (int, bool) {
func (s *TalkService) Update(flag int, count int) bool {
// VIP 直接返回失败
if cool.Config.ServerInfo.IsVip != 0 {
return false
return true
}
talkID := uint32(flag)
@@ -99,7 +99,6 @@ func (s *TalkService) Update(flag int, count int) bool {
talk := model.Talk{
PlayerID: userID,
TalkID: talkID,
Count: 0, // 关键:必须初始化 count 为 0
}
// 唯一索引 + InsertIgnore 保证只会插入1次
_, _ = db.Data(talk).InsertIgnore()