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

405 #53

Open
zbjjyy opened this issue May 2, 2022 · 7 comments
Open

405 #53

zbjjyy opened this issue May 2, 2022 · 7 comments

Comments

@zbjjyy
Copy link

zbjjyy commented May 2, 2022

5月2号晚11点,运行main程序,可以获取到用户信息和地址,但一直报错405
I0502 23:15:14.269138 46701 client.go:127] 请求结果有异常, 详情: {"success":null,"error":"AssertError","code":"405","message":"","msg":"","data":"-405"}
E0502 23:15:14.269159 46701 cart.go:65] 获取购物车商品失败, 错误: AssertError

@dupan123
Copy link

dupan123 commented May 2, 2022

对的 我也是

@loong0306
Copy link

+1

@ahutsunshine
Copy link
Owner

看来今天叮咚又升级风控策略了,上午还可以运行的,现在就被风控了,现在只有一条路可以走了

@zbjjyy
Copy link
Author

zbjjyy commented May 2, 2022

看了下config.go中的SetDefaultHeaders(),这个里面的配置的不少参数,mac的配置应该跟win的有好几个差异,
1、ddmc-build-version的值,mac抓包出来是2.85.4(但是如果这个地方改了的话,直接就是报错,{"success":false,"error":null,"code":2000,"message":"叮咚去邻居家串门了,马上回来~","msg":"","data":{"is_china_mobile":0}})【然后又改成1232恢复正常】
2、再把mac抓包到的其他相关参数填进去,还是一样的405报错

@loong0306
Copy link

主要不知道账号被风控多久可以解除,官网应该也没回答

@ahutsunshine
Copy link
Owner

ahutsunshine commented May 2, 2022

看了下config.go中的SetDefaultHeaders(),这个里面的配置的不少参数,mac的配置应该跟win的有好几个差异, 1、ddmc-build-version的值,mac抓包出来是2.85.4(但是如果这个地方改了的话,直接就是报错,{"success":false,"error":null,"code":2000,"message":"叮咚去邻居家串门了,马上回来~","msg":"","data":{"is_china_mobile":0}})【然后又改成1232恢复正常】 2、再把mac抓包到的其他相关参数填进去,还是一样的405报错

叮咚的风控是在太严格了,看来以后只有拿到用户的原数据将所有参数都配置上了。 我现在的程序里的方式是偷懒了,少填了不少参数,只是让用户填写了cookie, 方便是方便,但是太容易被风控。

@ahutsunshine
Copy link
Owner

使用声明: 一天只可运行1-2次,仅在抢菜的时候可用,否则极易被风控,明天更新避免风控策略。

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

No branches or pull requests

4 participants