Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

微信发送淘宝链接出现问题 #21

Open
woxiangxuejishu opened this issue Aug 4, 2023 · 1 comment
Open

微信发送淘宝链接出现问题 #21

woxiangxuejishu opened this issue Aug 4, 2023 · 1 comment

Comments

@woxiangxuejishu
Copy link

淘口令不完整,淘宝读不出来。求解

@lisen886
Copy link

lisen886 commented Aug 24, 2023

1、是因为文字截断问题,你可以将文字全部发送到微信上,不做文字截断
coupon/tb.py 47行和61行
itchat.send(f'''({text[start_index: 13 + start_index]})''', group_name)
改成
itchat.send(f'''({text})''', group_name)

2、生成淘口令的逻辑里有一个地方需要修改
coupon/tb.py 62行
text = f'''{tb_client.taobao_tbk_tpwd_create(title, coupon_share_url)}'''
改成
text = f'''{tb_client.taobao_tbk_tpwd_create(title, click_url)}'''

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants