{"id":28445828,"url":"https://github.com/pea-cake/tbk","last_synced_at":"2025-09-16T12:33:18.772Z","repository":{"id":62216611,"uuid":"525898451","full_name":"pea-cake/tbk","owner":"pea-cake","description":"淘宝客返利系统-网赚项目（nodejs）：1 .支持 淘宝、京东、拼多多转链 2.微信bot自动回复消息 转链、绑定订单 3.返利订单管理后台","archived":false,"fork":false,"pushed_at":"2023-09-03T10:19:22.000Z","size":97,"stargazers_count":293,"open_issues_count":2,"forks_count":98,"subscribers_count":6,"default_branch":"main","last_synced_at":"2025-08-06T11:46:29.735Z","etag":null,"topics":["bot","jingdong","pdd","taobao","taobaoke","wechat"],"latest_commit_sha":null,"homepage":"https://tbk-api.xumeng.host/?url=","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pea-cake.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"License","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2022-08-17T17:49:54.000Z","updated_at":"2025-07-25T17:44:31.000Z","dependencies_parsed_at":"2025-06-29T22:31:37.399Z","dependency_job_id":"cbcd1ef9-1004-47f8-8292-205b79b14989","html_url":"https://github.com/pea-cake/tbk","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/pea-cake/tbk","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pea-cake%2Ftbk","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pea-cake%2Ftbk/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pea-cake%2Ftbk/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pea-cake%2Ftbk/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pea-cake","download_url":"https://codeload.github.com/pea-cake/tbk/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pea-cake%2Ftbk/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":275416629,"owners_count":25460913,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-09-16T02:00:10.229Z","response_time":65,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bot","jingdong","pdd","taobao","taobaoke","wechat"],"created_at":"2025-06-06T10:14:01.528Z","updated_at":"2025-09-16T12:33:18.748Z","avatar_url":"https://github.com/pea-cake.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# tbk-淘宝客返利系统（nodejs v16）\n\n## 现有功能  \n\n* 支持 淘宝、京东、拼多多转链([转链服务源码](/tbk-api-server/README.md)) ([api测试链接](https://tbk-api.xumeng.host/?url=%E3%80%90%E6%B7%98%E5%AE%9D%E3%80%91https://m.tb.cn/h.UKRgdJO?tk=Aa0UdRum9Sd%20CZ3457%20%E3%80%8C%E4%B8%80%E6%AC%A1%E6%80%A7%E9%A5%BA%E5%AD%90%E7%9B%92%E5%A4%96%E5%8D%96%E4%B8%93%E7%94%A8%E9%A4%90%E7%9B%92%E5%95%86%E7%94%A8%E9%80%9F%E5%86%BB%E6%B0%B4%E9%A5%BA%E7%9B%92%E9%A6%84%E9%A5%A8%E6%89%93%E5%8C%85%E7%9B%92%E5%88%86%E6%A0%BC%E5%8C%85%E8%A3%85%E7%9B%92%E5%AD%90%E3%80%8D%20%E7%82%B9%E5%87%BB%E9%93%BE%E6%8E%A5%E7%9B%B4%E6%8E%A5%E6%89%93%E5%BC%80%20%E6%88%96%E8%80%85%20%E6%B7%98%E5%AE%9D%E6%90%9C%E7%B4%A2%E7%9B%B4%E6%8E%A5%E6%89%93%E5%BC%80))\n* 微信bot(是微信，不是公众号，当然公众号也实现了的)自动回复消息 转链、绑定订单(基于wechaty) ([微信bot源码](/wechat/README.md))\n* 返利系统订单管理后台（vue2、element-ui、express、mongoose...）(已开源) ([管理后台](https://github.com/pea-cake/tbk-manage.git))\n* ...\n\n## 如何运行和部署\n\n### 运行\n\n1. 配置（./config/index.js） 阿里联盟、京东联盟、多多客 返佣账号appkey appsecret\n\n    ```text\n    JDconfig: {\n        // 京东联盟\n        appKey: \"\",\n        appSecret: \"\",\n    },\n    TBconfig: {\n        // 阿里联盟, 获取配置看这里https://github.com/pea-cake/tbk/issues/5\n        appkey: \"\",\n        appsecret: \"\",\n        adzone_id: \"\", // 推广位pid 'mm_123_456_789' 的789就是adzone_id\n    },\n    PDDconfig: {\n        // 多多客\n        clientId: \"\",\n        clientSecret: \"\",\n        pid: \"\", // 推广位pid\n    }\n    ```\n\n2. 安装mongodb数据库（自行查找方法）  \n\n3. 安装node环境（自行查找方法）  \n\n4. 安装所需包  \n\n    ```bash\n    npm i\n    ```\n\n5. 运行转链api服务  \n\n    ```bash\n    npm run server\n    ```\n\n6. 另启动一个终端，运行微信bot服务  \n\n    ```bash\n    npm run wechat\n    ```\n\n7. 扫码登录微信即可\n8. 还可使用pm2 运行\n\n    ```bash\n    npm install pm2 -g\n    pm2 start tbk-api-server/index.js\n    pm2 start wechat/index.js\n    ```\n\n### 部署\n\n## docker\n\n1. 已经安装docker\n2. 完成配置（config/index.js）\n3.  \n    * DockerFile  \n\n    ```bash\n    docker build -t tbk:v1 .\n    docker run -it tbk:v1 /bin/bash\n    ```\n\n    * docker远程仓库  \n\n    ```bash\n    docker pull peacaker/tbk:1.0.0\n    docker run -it peacaker/tbk:1.0.0 /bin/bash\n    ```\n\n4. 扫码登录微信即可\n\n## 🧐🧐🧐\n\n* 这是一个能赚点小钱，即使不能赚钱，也能方便你省钱的系统  \n* 已全部开源，欢迎使用，欢迎star，也期待你的添砖加瓦\n* ...\n\n## 体验\n1. 转链api体验：https://tbk-api.xumeng.host/?url=商品链接.  \n2. 微信扫码(风控暂时停用，可能由于玩chatgpt多了):  \n\u003cimg src=\"https://user-images.githubusercontent.com/58544092/187089988-28c60792-83e5-4611-bde9-7ff3cfe93aec.jpg\" width=\"200px\" height=\"200px\"/\u003e  \n\n## 展示  \n\n微信消息部分：  \n\u003cimg src=\"https://user-images.githubusercontent.com/58544092/185220186-c013651e-0640-4c22-95d6-15bf7f0de059.png\" width=\"200px\" height=\"400px\"/\u003e \u003cimg src=\"https://user-images.githubusercontent.com/58544092/185220657-78e275ed-1f36-49b6-a2f5-4dcd0c60f141.png\" width=\"200px\" height=\"400px\"/\u003e \u003cimg src=\"https://user-images.githubusercontent.com/58544092/185222647-693ffcb3-431d-4c73-bce9-7006764d65f2.png\" width=\"200px\" height=\"400px\"/\u003e  \n\n管理系统截图：  \n\n![image](https://user-images.githubusercontent.com/58544092/197322244-3db634f8-fdce-491c-8339-6ea9bdfdab75.png)\n\n![image](https://user-images.githubusercontent.com/58544092/197322205-74d8f0e6-9798-43c9-af7b-a567a3144fde.png)\n...\n\n## 感谢\n\n* 待添加\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpea-cake%2Ftbk","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpea-cake%2Ftbk","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpea-cake%2Ftbk/lists"}