mirror of
https://github.com/MeoProject/lx-music-api-server.git
synced 2025-07-06 22:42:14 +08:00
chore: 优化代码
This commit is contained in:
@ -27,12 +27,10 @@ def checklxmheader(lxm, url):
|
||||
arr, outsideversion = tuple([cop.split(']')[0] + ']', cop.split(']')[1]])
|
||||
arr = json.loads(arr)
|
||||
version = re.findall("\\d+", version)[0]
|
||||
if (not outsideversion.startswith(version)):
|
||||
|
||||
if not outsideversion.startswith(version):
|
||||
return False
|
||||
if (
|
||||
(not (version) in ("".join(arr))) and
|
||||
(not (retvalue) in "".join(arr))
|
||||
):
|
||||
if (not (version) in ("".join(arr))) and (not (retvalue) in "".join(arr)):
|
||||
return False
|
||||
return True
|
||||
except:
|
||||
|
Reference in New Issue
Block a user