nomadro/apps/ebook/wemini/deploy/verify_admin_ui.py
eric d93a355fd5 Migrate navmini/ebook/nomadweb into apps/ as same-origin portal subpaths.
Shield external portal jumps (keep EXTERNAL_* for later), serve /nav from static build, and proxy /book + /community to vertical Next apps with Caddy notes.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-28 03:30:34 -05:00

26 lines
1023 B
Python

import json
import urllib.request
html = urllib.request.urlopen("https://admin.nomadro.cn/").read().decode("utf-8", "replace")
print("html has DaTXLZ96", "DaTXLZ96" in html)
req = urllib.request.Request(
"https://api.nomadro.cn/api/admin/login",
data=json.dumps({"username": "admin", "password": "Xiao4669805"}).encode(),
headers={"Content-Type": "application/json"},
)
tok = json.loads(urllib.request.urlopen(req).read())["token"]
req2 = urllib.request.Request(
"https://api.nomadro.cn/api/admin/product-offers",
headers={"Authorization": f"Bearer {tok}"},
)
items = json.loads(urllib.request.urlopen(req2).read())["items"]
print("offers", [(i["key"], i["product_id"], i["price_fen"]) for i in items])
js = urllib.request.urlopen("https://admin.nomadro.cn/assets/index-DaTXLZ96.js").read().decode(
"utf-8", "replace"
)
print("live monetize-panel", "monetize-panel" in js)
print("live product-offers", "product-offers" in js)
print("live old unlock label present", "试读解锁百分比" in js)