fix: 识别失效商品链接返回首页 (#111)
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user