GithubHelp home page GithubHelp logo

frxer / sams_helper Goto Github PK

View Code? Open in Web Editor NEW

This project forked from sari3l/sams_helper

0.0 0.0 0.0 569 KB

山姆全自动抢购:普通商品、保供套餐;支持优惠券、无货添加、数量修正、金额限制、超重拆分、黑白名单

License: GNU General Public License v3.0

Go 100.00%

sams_helper's Introduction

sams_helper

📢 6.1 上海解封,㊗️各位再也用不到此程序。

借鉴自: https://github.com/robGoods/sams v1.0

使用方式

0x01 运行

  1. Releases 页面下载对应系统版本。
  2. 命令行运行可执行文件(初次运行会自动释放配置文件)。

0x02 配置

主要修改 config.yaml 文件中以下内容:

# 山姆会员 Token
authToken: "74xxxxxxxxxxxx"
# 运行模式
# 1->山姆抢购 | 2->保供抢购
runMode: 1
# 配送方式
# 1->极速达 | 2->全城配
deliveryType: 1

其他配置(尤其是通知相关配置)请查看文件内注释自行修改。

功能支持

config 简介
addGoodsFromFileSet 自动搜索添加商品(即使无货),允许热加载随时更新
autoFixPurchaseLimit 对限购、库存数量不足的商品自动修正
autoInputSet 自动选择支付方式、收货地址、优惠券
autoShardingForOrder 超重订单自动拆分下单(暂未考虑运费、重量最优解)
bruteCapacity 运力爆破(非常规爆破),全城配下很好用的功能,增大下单成功率
cartSelectedStateSync 全平台勾选状态同步,只会下单勾选商品
moneySet 控制单次订单金额上下限,累计金额上限(会影响超重拆分功能)
runUnlimited 成功下单后程序不退出持续运行
sleepTimeSet 自定义各步骤休眠时间
supplySet 即时获取保供清单,可强制添加无货保供商品,同时可设置黑白名单限制监控清单
updateStoreForce 强制刷新商店,避免店面突然上下线引起的异常(早中抢购建议开启)
proxySet 代理设置,方便抓包、调试,或切换异地避免当地高峰网络堵塞

注意事项

  1. runUnlimited: true永不停歇模式开启
    • 下单成功会回到购物车检查状态,如果没有设置提醒可能错过文字消息。
    • 保供商品已下单的套餐不会再次购买,在保供抢购下不建议程序持续开启超过一天。
  2. bruteCapacity: true 开启运力暴力模式
    • 此模式下主要以尽力下单为目标,最终配送时间跨度可能较大
    • 暴力模式会通过全城配来下单,可能导致最终订单内取消部分极速达商品(具体可通过查看移动端购物车全城配即为最终订单商品列表)。
  3. 如果购物车里同时存在极速达全城配商品,若deliveryType = 2,则会尝试通过全城配购买极速达货物(可能无货)。
  4. ignoreInvalid 忽略无效商品
    • true 在检测有无效商品时自动剔除,继续提交订单(可能会因为金额减少增加运费)。
    • false 会一直检测等待至商品全部有效才会尝试提交订单。
  5. noticeType = 3Mac Sound 提醒,仅对 OSX 系统有效。

主要更新:

  • 2022年05月10日 新增超重自动拆分设置
  • 2022年05月02日 新增全平台购物车勾选状态同步设置
  • 2022年05月01日 新增强制添加购物车强制更新商店设置,新增下单金额限制功能
  • 2022年04月29日 添加自动输入设置
  • 2022年04月28日 添加永不停歇设置
  • 2022年04月26日 添加优惠券模块
  • 2022年04月25日 保供商品筛选修改为黑白名单
  • 2022年04月21日 保供商品可通过关键字排除
  • 2022年04月20日 添加保供自动抢单模块
  • 2022年04月19日 添加运力暴力模式模块
  • 2022年04月18日 添加Server酱提醒模块
  • 2022年04月16日 添加小程序模拟模式方式
  • 2022年04月15日 选择地址后自动更新购物车
  • 2022年04月14日 修正一些函数问题

效果



支持

此非商业盈利行为,完全自愿,请量力而行。


声明

本项目仅供学习交流,严禁用作商业行为,特别禁止黄牛加价代抢等!

因违法违规等不当使用导致的后果与本人无关,如有任何问题可联系本人删除!

sams_helper's People

Contributors

desire11 avatar sari3l avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.