mai2: correct check JP version

maimai DX is 1.00.00~1.06.00
maimai DX PLUS is 1.10.01~1.13.00
maimai DX Splash is 1.14.00~1.16.00
maimai DX Splash PLUS is 1.17.00~1.19.00
This commit is contained in:
zaphkito 2024-04-14 09:43:20 +00:00
parent 85c14225d5
commit b4671eca3d
1 changed files with 4 additions and 4 deletions

View File

@ -252,13 +252,13 @@ class Mai2Servlet(BaseServlet):
req_raw = await request.body()
internal_ver = 0
client_ip = Utils.get_ip_addr(request)
if version < 105: # 1.0
if version < 110: # 1.0
internal_ver = Mai2Constants.VER_MAIMAI_DX
elif version >= 105 and version < 110: # PLUS
elif version >= 110 and version < 114: # PLUS
internal_ver = Mai2Constants.VER_MAIMAI_DX_PLUS
elif version >= 110 and version < 115: # Splash
elif version >= 114 and version < 117: # Splash
internal_ver = Mai2Constants.VER_MAIMAI_DX_SPLASH
elif version >= 115 and version < 120: # Splash PLUS
elif version >= 117 and version < 120: # Splash PLUS
internal_ver = Mai2Constants.VER_MAIMAI_DX_SPLASH_PLUS
elif version >= 120 and version < 125: # UNiVERSE
internal_ver = Mai2Constants.VER_MAIMAI_DX_UNIVERSE