fix: 识别失效商品链接返回首页 (#111)

This commit is contained in:
chengma
2026-08-10 18:20:34 +08:00
parent 3b659eba0a
commit 8c9dbfed44
15 changed files with 802 additions and 62 deletions
+4 -1
View File
@@ -20,6 +20,7 @@ class SettingsFocusedRealPage:
def __init__(self, xml_data):
self.xml_data = xml_data
self.opened = False
def app_current(self):
return {"package": "com.oplus.wirelesssettings"}
@@ -31,9 +32,11 @@ class SettingsFocusedRealPage:
return 1
def open_url(self, _url):
return None
self.opened = True
def dump_hierarchy(self):
if not self.opened:
return '<hierarchy><node package="com.oplus.wirelesssettings" /></hierarchy>'
return self.xml_data