修复更改账号信息功能
This commit is contained in:
@@ -1115,11 +1115,6 @@ def playwright_set_user_profile(cookies, username=None, first_name=None, last_na
|
||||
retry_goto(page, url)
|
||||
page.locator('//div[@role="list"]/div').first.click()
|
||||
|
||||
if username:
|
||||
page.click('//a[@aria-label="Username"]')
|
||||
page.locator('//input').first.fill(username)
|
||||
page.click('//span[text()="Done"]')
|
||||
|
||||
if first_name or last_name:
|
||||
if first_name and last_name:
|
||||
# 修改名称
|
||||
@@ -1151,7 +1146,6 @@ def playwright_set_user_profile(cookies, username=None, first_name=None, last_na
|
||||
context.close()
|
||||
browser.close()
|
||||
return {
|
||||
'username': username,
|
||||
'first_name': first_name,
|
||||
'last_name': last_name,
|
||||
'avatar_key': avatar_key,
|
||||
|
||||
Reference in New Issue
Block a user