a docker image for Runc2333/dingdong-helper-node, [Offline]
70
minirplus/dingdong-helper is based on Runc2333/dingdong-helper-node. Use official github release to build the image.
yarn run v1.22.18
$ node scripts/checkout_cart
[远端服务器] 项目停用,本远端执行代码位于 /utils/axios.js
[Remote Server] Project disabled, this remote code execution located at /utils/axios.js
error Command failed with exit code 255.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
Create a config.js file, like /root/dingdong-helper/config/config.js
global.config = {
dingdong: {
webhook_url: '', // 下单成功通知url,暂无配套实现,如未阅读源码请**不要**填写
thread_count: 2, // 下单时创建的线程数,建议不要超过3
thread_interval: 100, // 线程创建间隔,建议不要低于100,单位ms
submit_interval_min: 20 * 1000, // 随机最小请求间隔时间,单位ms
submit_interval_max: 50 * 1000, // 随机最大请求间隔时间,单位ms
minimal_order_money: 0, // 小于该金额的订单不会被提交
api_channel: 'ios-native', // 可选 'ios-native', 'android-native' 或 'applet', 目前仅支持 'ios-native'
profiles: [
{
seq: 0, // 指示程序读取charles_sessions目录下的第几个文件
im_secret: '',// 通过抓包获取,用于签名请求
alias: '', // 配置文件别名,用于在下单成功时提示是哪个账号
}
],
},
log: {
enable: true
console_level: 'debug', // Specific level will be output to console, can be trace debug info warn error
log_level: 'debug', // Specific level will be write to file, can be trace debug info warn error
folder: './log',
log_split: true, // split log file by day
},
};
Visit github: https://github.com/Runc2333/dingdong-helper-node#%E8%8E%B7%E5%8F%96-session
put the session file (like dingdong-session.chlsj) in the session folder, like /root/dingdong-helper/charles_sessions/dingdong-session.chlsj
Visit github: https://github.com/Runc2333/dingdong-helper-node#%E8%8E%B7%E5%8F%96-im_secret
docker run -it --rm minirplus/dingdong-helper:20220503
You will see the dingdong-helper logs below.
yarn run v1.22.18
$ node scripts/checkout_cart
[2022-05-03 13:48:45] [ERROR] TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string. Received undefined
[2022-05-03 13:48:45] [ERROR] 请检查您的配置文件是否正确, charles_session 目录下是否存在 .chlsj(JSON Session File) 文件
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs
Done!
Ctrl+C will stop the dingdong-helper service and rm the container.
docker run -it --rm \
-v /root/dingdong-helper/config:/usr/src/app/config \
-v /root/dingdong-helper/charles_sessions:/usr/src/app/charles_sessions \
minirplus/dingdong-helper:20220503
docker run -it --rm \
-v /root/dingdong-helper/config:/usr/src/app/config \
-v /root/dingdong-helper/charles_sessions:/usr/src/app/charles_sessions \
minirplus/dingdong-helper:20220503 yarn checkout:speed
if all runs normal, you will see logs below.
yarn run v1.22.18
$ node scripts/checkout_cart
[2022-05-03 14:19:05] [INFO] [17833244320] 当前默认地址 : 黄浦区金陵东路79号
[2022-05-03 14:19:05] [INFO] 购物车商品更新: 共 13 件
[2022-05-03 14:19:05] [ERROR] 获取预约时间失败:没有可预约的时间
Content type
Image
Digest
Size
344.1 MB
Last updated
over 4 years ago
docker pull minirplus/dingdong-helper:20220503