mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-30 02:47:13 +08:00
Fix: [ALAS] Handle copy-pasted serial 5555,16384 to be fool-proof
This commit is contained in:
@@ -78,9 +78,9 @@ class ConnectionAttr:
|
|||||||
# 127.0.0.1.5555
|
# 127.0.0.1.5555
|
||||||
serial = serial.replace('127.0.0.1.', '127.0.0.1:')
|
serial = serial.replace('127.0.0.1.', '127.0.0.1:')
|
||||||
# Mumu12 5.0 shows double serials, some people may just copy-paste it
|
# Mumu12 5.0 shows double serials, some people may just copy-paste it
|
||||||
# 5555,16384
|
# 5555,16384 -> replaced to 5555.16384
|
||||||
if ',' in serial:
|
if '.' in serial:
|
||||||
left, _, right = serial.partition(',')
|
left, _, right = serial.partition('.')
|
||||||
if left.startswith('55') and right.startswith('16'):
|
if left.startswith('55') and right.startswith('16'):
|
||||||
serial = right
|
serial = right
|
||||||
# 16384
|
# 16384
|
||||||
|
|||||||
Reference in New Issue
Block a user