hahah
This commit is contained in:
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
Binary file not shown.
File diff suppressed because it is too large
Load Diff
Binary file not shown.
File diff suppressed because one or more lines are too long
File diff suppressed because it is too large
Load Diff
Binary file not shown.
BIN
dist/多多自动化发文助手.exe
vendored
BIN
dist/多多自动化发文助手.exe
vendored
Binary file not shown.
25
main.py
25
main.py
@@ -889,14 +889,19 @@ class Pdd:
|
||||
creator_tab.close()
|
||||
return {"ok": False, "reason": "定时设置失败:未找到日期选择器"}
|
||||
|
||||
# 绑定任务
|
||||
ele = creator_tab.ele('x://*[text()="点击绑定任务"]', timeout=3)
|
||||
if ele:
|
||||
ele.click()
|
||||
creator_tab.ele('x://*[@placeholder="请输入个人主页链接"]').input(self.url)
|
||||
time.sleep(1)
|
||||
creator_tab.ele('x://*[text()="确认"]').click()
|
||||
time.sleep(1)
|
||||
# 绑定任务(仅在有达人链接时才点击)
|
||||
if self.url and str(self.url).strip():
|
||||
ele = creator_tab.ele('x://*[text()="点击绑定任务"]', timeout=3)
|
||||
if ele:
|
||||
ele.click()
|
||||
creator_tab.ele('x://*[@placeholder="请输入个人主页链接"]').input(self.url)
|
||||
time.sleep(1)
|
||||
creator_tab.ele('x://*[text()="确认"]').click()
|
||||
time.sleep(1)
|
||||
else:
|
||||
logger.warning("未找到绑定任务按钮")
|
||||
else:
|
||||
logger.info("未设置达人链接,跳过绑定任务")
|
||||
|
||||
ele = creator_tab.ele('x://*[text()="我已阅读并同意"]', timeout=3)
|
||||
if ele:
|
||||
@@ -1260,8 +1265,8 @@ class Pdd:
|
||||
else:
|
||||
logger.info(f" 步骤2: 跳过定时任务(未设置定时时间)")
|
||||
|
||||
# 3. 绑定任务(如果该视频有URL)
|
||||
if video_url:
|
||||
# 3. 绑定任务(仅在有达人链接时才点击)
|
||||
if video_url and str(video_url).strip():
|
||||
logger.info(f" 步骤3: 绑定任务...")
|
||||
logger.info(f" 绑定URL: {video_url[:50]}...")
|
||||
try:
|
||||
|
||||
Reference in New Issue
Block a user