2025-11-28 15:56:33 +08:00
|
|
|
from app.utils.auth_validator import AuthValidator
|
2025-11-22 20:32:49 +08:00
|
|
|
|
2025-11-28 15:56:33 +08:00
|
|
|
validator = AuthValidator(software_id="ArticleReplace",
|
|
|
|
|
api_url="http://km.taisan.online/api/v1",
|
|
|
|
|
gui_mode=True
|
|
|
|
|
)
|
2025-11-22 20:32:49 +08:00
|
|
|
|
2025-11-28 15:56:33 +08:00
|
|
|
# 执行验证
|
|
|
|
|
if not validator.validate():
|
|
|
|
|
print("授权验证失败,程序退出")
|