fix(shop): fix syntax error and update migration tests after #150 merge

PR #150 introduced a double brace `{  {` on handlers_shop.go:109 that
broke compilation. Migration tests were also hardcoded for 1 migration
but 3 now exist (0001–0003).
This commit is contained in:
Houmgaor
2026-02-26 21:55:12 +01:00
parent 1f0ea6ac23
commit a399ba7419
2 changed files with 23 additions and 15 deletions

View File

@@ -93,7 +93,7 @@ func handleMsgMhfEnumerateShop(s *Session, p mhfpacket.MHFPacket) {
bf.WriteUint16(uint16(len(gachas)))
bf.WriteUint16(uint16(len(gachas)))
for _, g := range gachas {
if s.server.erupeConfig.RealClientMode >= cfg.GG{
if s.server.erupeConfig.RealClientMode >= cfg.GG {
//Before GG, there was no data for G1, so there was no data for G1 except for ID and name
//But the difference between G2 and G3 still needs to be tested, and the data for G1 and GG are already clear
bf.WriteUint32(g.ID)
@@ -106,7 +106,7 @@ func handleMsgMhfEnumerateShop(s *Session, p mhfpacket.MHFPacket) {
bf.WriteUint32(0) // only 0 in known packet
}
ps.Uint8(bf, g.Name, true)
if s.server.erupeConfig.RealClientMode <= cfg.GG{ { //For versions less than or equal to GG, each message sent to the name ends
if s.server.erupeConfig.RealClientMode <= cfg.GG { //For versions less than or equal to GG, each message sent to the name ends
continue
}
ps.Uint8(bf, g.URLBanner, false)