Skip to content

Commit 8fa91a1

Browse files
authored
fix:[mcfish]User purchases fish pole initialization (#1088)
修复用户第一次购买鱼竿的时候初始化错误
1 parent 696a0ac commit 8fa91a1

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

plugin/mcfish/main.go

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -345,10 +345,7 @@ func (sql *fishdb) setEquipFor(uid int64) (err error) {
345345
if err != nil {
346346
return err
347347
}
348-
err = sql.db.Find("fishState", &userInfo, "WHERE ID = ?", uid)
349-
if err != nil {
350-
return err
351-
}
348+
_ = sql.db.Find("fishState", &userInfo, "WHERE ID = ?", uid)
352349
userInfo.Equip++
353350
return sql.db.Insert("fishState", &userInfo)
354351
}

0 commit comments

Comments
 (0)