Giter VIP home page Giter VIP logo

tbk's Introduction

tbk-淘宝客返利系统(nodejs v16)

现有功能

  • 支持 淘宝、京东、拼多多转链(转链服务源码) (api测试链接)
  • 微信bot(是微信,不是公众号,当然公众号也实现了的)自动回复消息 转链、绑定订单(基于wechaty) (微信bot源码)
  • 返利系统订单管理后台(vue2、element-ui、express、mongoose...)(已开源) (管理后台)
  • ...

如何运行和部署

运行

  1. 配置(./config/index.js) 阿里联盟、京东联盟、多多客 返佣账号appkey appsecret

    JDconfig: {
        // 京东联盟
        appKey: "",
        appSecret: "",
    },
    TBconfig: {
        // 阿里联盟, 获取配置看这里https://github.com/pea-cake/tbk/issues/5
        appkey: "",
        appsecret: "",
        adzone_id: "", // 推广位pid 'mm_123_456_789' 的789就是adzone_id
    },
    PDDconfig: {
        // 多多客
        clientId: "",
        clientSecret: "",
        pid: "", // 推广位pid
    }
    
  2. 安装mongodb数据库(自行查找方法)

  3. 安装node环境(自行查找方法)

  4. 安装所需包

    npm i
  5. 运行转链api服务

    npm run server
  6. 另启动一个终端,运行微信bot服务

    npm run wechat
  7. 扫码登录微信即可

  8. 还可使用pm2 运行

    npm install pm2 -g
    pm2 start tbk-api-server/index.js
    pm2 start wechat/index.js

部署

docker

  1. 已经安装docker

  2. 完成配置(config/index.js)

    • DockerFile
    docker build -t tbk:v1 .
    docker run -it tbk:v1 /bin/bash
    • docker远程仓库
    docker pull peacaker/tbk:1.0.0
    docker run -it peacaker/tbk:1.0.0 /bin/bash
  3. 扫码登录微信即可

🧐🧐🧐

  • 这是一个能赚点小钱,即使不能赚钱,也能方便你省钱的系统
  • 已全部开源,欢迎使用,欢迎star,也期待你的添砖加瓦
  • ...

体验

  1. 转链api体验:https://tbk-api.xumeng.host/?url=商品链接.
  2. 微信扫码(风控暂时停用,可能由于玩chatgpt多了):

展示

微信消息部分:

管理系统截图:

image

image ...

感谢

  • 待添加

tbk's People

Contributors

pea-cake avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

tbk's Issues

用的是docker,能请问一下:数据库连接失败是什么问题

数据库连接失败
/tbk/wechat/db_action/index.js:38
const girls_table = mongoObj.dbase.collection(collection_name);
^

TypeError: Cannot read properties of undefined (reading 'dbase')
at selectData (/tbk/wechat/db_action/index.js:38:34)
at Object.selectCustomers (/tbk/wechat/db_action/index.js:49:45)
at /tbk/utils/index.js:148:43

数据库连接失败

数据库连接失败

已安装Mongo,创建了数据库‘’taobaoke“,系统会报下面的错误,麻烦大佬帮忙看一下
E:\wxbot\tbk-main\wechat\db_action\index.js:39
const girls_table = mongoObj.dbase.collection(collection_name);
^ TypeError: Cannot read properties of undefined (reading 'dbase')
at selectData (E:\wxbot\tbk-main\wechat\db_action\index.js:39:34)
at Object.selectCustomers (E:\wxbot\tbk-main\wechat\db_action\index.js:50:45)
at E:\wxbot\tbk-main\utils\index.js:150:37
Node.js v18.12.1

必须要开通微信支付吗?是否可以关闭?

下面是报错信息:

16:46:07 WARN PuppetWeChatBridge onDialog() page.on(dialog) type:type() {
return this._type;
} message:你需要开通微信支付,才可继续操作。
node:internal/process/promises:279
triggerUncaughtException(err, true /* fromPromise */);
^

GError: type() {
return this._type;
}(你需要开通微信支付,才可继续操作。)
at Function.from (D:\project\tbkJs\node_modules\gerror\dist\cjs\src\gerror\gerror.js:86:23)
at Bridge.onDialog (D:\project\tbkJs\node_modules\wechaty-puppet-wechat\dist\cjs\src\bridge.js:134:44)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
Emitted 'error' event on WechatyImpl instance at:
at WechatyImpl.emit (D:\project\tbkJs\node_modules\wechaty\dist\cjs\src\wechaty-mixins\gerror-mixin.js:48:26)
at PuppetWeChat. (D:\project\tbkJs\node_modules\wechaty\dist\cjs\src\wechaty-mixins\puppet-mixin.js:181:34)
at PuppetWeChat.emit (node:events:513:28)
at PuppetWeChat.emit (D:\project\tbkJs\node_modules\wechaty-puppet\dist\cjs\src\puppet\puppet-skeleton.js:133:22)
at Bridge. (D:\project\tbkJs\node_modules\wechaty-puppet-wechat\dist\cjs\src\puppet-wechat.js:197:45)
at Bridge.emit (node:events:513:28)
at D:\project\tbkJs\node_modules\wechaty-puppet-wechat\dist\cjs\src\bridge.js:43:56
at processTicksAndRejections (node:internal/process/task_queues:96:5) {
code: 2,
details: 'GError: type() {\n' +
' return this._type;\n' +
' }(你需要开通微信支付,才可继续操作。)\n' +
' at Function.from (D:\project\tbkJs\node_modules\gerror\dist\cjs\src\gerror\gerror.js:86:23)\n' +
' at Bridge.onDialog (D:\project\tbkJs\node_modules\wechaty-puppet-wechat\dist\cjs\src\bridge.js:134:44)\n'
+
' at processTicksAndRejections (node:internal/process/task_queues:96:5)'
}

请问一下转链失败

请问一下转链报错这个是因为什么
应用权限除了淘口令预警及拦截查询以外全都申请过了
image

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.