feat: 新增战斗技能效果648-677
All checks were successful
ci/woodpecker/push/my-first-workflow Pipeline was successful
All checks were successful
ci/woodpecker/push/my-first-workflow Pipeline was successful
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user