coder-fly / douyin-signature

douyin signature
269 stars 122 forks source link

本地调用js得到的sign和你服务器接口的sign不一致 #1

Open qianxiaolv opened 4 years ago

qianxiaolv commented 4 years ago

您好,你上传的douyin.js 是最先的吗? 我在本地分别用网页和node调用了js,得到的sign和服务器不一致,时候可以更新一下您服务器的js文件上来 调用参数 user_id: 58958068057 tac: i)69jnqjufcs!i#k5vs"0,<8~z api返回结果 OBGmyBATZhOJTcwe.0zaYjgRpt 本地执行结果 OBGmyBATZhOx8J9SeqbaYjgRpt

coder-fly commented 4 years ago

问题不大,虽然不一样但是也可以正常返回数据。

qianxiaolv commented 4 years ago

返回不了数据呢,最新的js能发我一份吗

发送自 Windows 10 版邮件https://go.microsoft.com/fwlink/?LinkId=550986应用


发件人: paseca notifications@github.com 发送时间: Tuesday, January 14, 2020 9:07:57 AM 收件人: coder-fly/douyin-signature douyin-signature@noreply.github.com 抄送: qianxiaolv shilei.qian@outlook.com; Author author@noreply.github.com 主题: Re: [coder-fly/douyin-signature] 本地调用js得到的sign和你服务器接口的sign不一致 (#1)

问题不大,虽然不一样但是也可以正常返回数据。

― You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/coder-fly/douyin-signature/issues/1?email_source=notifications&email_token=AGXTFZK5MUHZV2OOOP26BMLQ5UF63A5CNFSM4KGF3NO2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEI24OWA#issuecomment-573949784, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AGXTFZM7XBYQ2VEKXAUOX6DQ5UF63ANCNFSM4KGF3NOQ.

coder-fly commented 4 years ago

github上就是最新的js,之前本地测试的时候使用node调用js生成的貌似也是无法返回数据,所以才用的webdriver,有时间我再确认一下。

qianxiaolv commented 4 years ago

本地html也返回不了数据,还请确认一下,谢谢,另外js好像是监测了浏览器参数,node执行要屏蔽监测代码才能运行成功

skygongque commented 4 years ago

现在部署在服务器上的还是借助pyppeteer的吗?有没有办法在node环境运行,发现跟浏览器的结果只差中间没几位

cq-yxjd commented 4 years ago

我试图自己看懂他的加密逻辑,然而扣出来的代码虽然生成了参数 ,但是其实是错的,就很绝望。