重构UCD模块
This commit is contained in:
@@ -3,10 +3,10 @@ APP_VERSION = "106.26.0.0"
|
||||
|
||||
|
||||
def is_beta_version(version: str = APP_VERSION) -> bool:
|
||||
"""版本号第3、4段均为 '0' 时(格式 x.x.0.0)判定为测试版。"""
|
||||
"""版本号第3、4段均为 '0' 时(格式 x.x.0.x)判定为测试版。"""
|
||||
parts = version.split(".")
|
||||
if len(parts) >= 4:
|
||||
return parts[2] == "0" and parts[3] == "0"
|
||||
return parts[2] == "0"
|
||||
return False
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user