Giter Club home page Giter Club logo

go-web-test's Introduction

go-web-test

环境

# 启动 MySQL
cd ./mysql
./start.sh

编译

./build.sh

启动 service

./web-demo

run 命令行参数

$ ./web-demo --help
Usage of ./web-demo:
  -dbhost string
        database host (default "localhost")
  -dbname string
        database name (default "recharge_db")
  -dbport string
        database port (default "3306")
  -dbpwd string
        database password (default "123456")
  -dbuser string
        database user (default "root")
  -https
        use HTTPS
  -port string
        server port (default "8080")

JSON 配置

{"orderNo":"{$订单编号}","goodsID":"{$商品ID}","goodsName":"{$商品名称}","accountID":"{$订单扩展参数(游戏账号)}","buyerPhoneNumber":"{$联系人手机}","buyerID":"{$买家ID}","amount":"{$订单金额}","singleAmount":"{$商品实付单价}","totalAmount":"{$商品实付总价}","count":"{$购买数量}","timeStamp":"{$时间戳B}","gameType":"1","shopType":"1","priceType":"1"}
  • gameType
    • 1:通宝区
    • 2:元宝区
  • shopType
    • 1:淘宝
    • 2:天猫
    • 3:京东
    • 4:拼多多
  • priceType
    • 1
    • 15
    • 30
    • 50
    • 100

To do

  • DB 数据中加入尝试发货次数,超过次数不再发货
  • 后台线程处理时优先处理尝试次数少的数据,并且尝试次数加 1
  • 另起一个监听,模拟爬虫 service

go-web-test

go-web-test's People

Watchers

 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.