All Projects → liuguangw → billing_go

liuguangw / billing_go

Licence: MIT license
billing验证

Programming Languages

go
31211 projects - #10 most used programming language
Makefile
30231 projects

Projects that are alternatives of or similar to billing go

Stripe Billing Typographic
⚡️Typographic is a webfont service (and demo) built with Stripe Billing.
Stars: ✭ 186 (+304.35%)
Mutual labels:  billing
subscribie
Collect recurring payments online - subscription payments collection automation
Stars: ✭ 36 (-21.74%)
Mutual labels:  billing
AWSEstimatedCharges2Slack
Summarise AWS/Billing EstimatedCharges for Slack
Stars: ✭ 18 (-60.87%)
Mutual labels:  billing
Invoiceneko
An Open Sourced Invoice System developed for anyone who needs to generate out an invoice and manage clients
Stars: ✭ 204 (+343.48%)
Mutual labels:  billing
killbill-stripe-plugin
Kill Bill plugin for Stripe
Stars: ✭ 16 (-65.22%)
Mutual labels:  billing
react-native-cafe-bazaar
In-App billing for Cafe Bazaar (local android market)
Stars: ✭ 26 (-43.48%)
Mutual labels:  billing
Commerce billing
A payment processing library for Elixir
Stars: ✭ 170 (+269.57%)
Mutual labels:  billing
killbill-admin-ui
Kill Bill Administrative UI engine
Stars: ✭ 39 (-15.22%)
Mutual labels:  billing
automated-p2p-transactions
Payme orqali p2p to'lovlarni avtomatlashtirish
Stars: ✭ 29 (-36.96%)
Mutual labels:  billing
RxBilling
Rx wrapper for Billing Library with connection management
Stars: ✭ 79 (+71.74%)
Mutual labels:  billing
Ledgersmb
Repository for the LedgerSMB project -- web app for accounting & ERP
Stars: ✭ 222 (+382.61%)
Mutual labels:  billing
recurly
A Recurly API client written in golang. Actively maintained and unit tested. No external dependencies.
Stars: ✭ 40 (-13.04%)
Mutual labels:  billing
phpmixbill
PHP Mikrotik Billing - Voucher management for Mikrotik Hotspot
Stars: ✭ 134 (+191.3%)
Mutual labels:  billing
Killbill
Open-Source Subscription Billing & Payments Platform
Stars: ✭ 2,396 (+5108.7%)
Mutual labels:  billing
TlbbGmTool
某网络游戏的单机版本GM工具
Stars: ✭ 40 (-13.04%)
Mutual labels:  tlbb
Node Sales Tax
💰 International sales tax calculator for Node (offline, but provides optional online VAT number fraud check). Tax rates are kept up-to-date.
Stars: ✭ 182 (+295.65%)
Mutual labels:  billing
Cashier
A Better Billing Provider for Android.
Stars: ✭ 26 (-43.48%)
Mutual labels:  billing
Poolakey
Android In-App Billing SDK for Cafe Bazaar App Store
Stars: ✭ 60 (+30.43%)
Mutual labels:  billing
smart-cnab
A package for general manipulation of CNAB files, generation of remittances and parsing of returns using a normalized fields structure.
Stars: ✭ 11 (-76.09%)
Mutual labels:  billing
kbcli
GO client library for Kill Bill
Stars: ✭ 22 (-52.17%)
Mutual labels:  billing

billing_go

这是一个用Go语言编写的billing验证服务器。

运行环境要求

支持以下任意一种运行环境

  • Linux (Linux 2.6.23 或者以上版本)
  • Windows 7, Server 2008R2 或者更高版本

获取程序包

有以下两种方式获取此程序包。

1.使用我编译好的版本

点击这里查看我编译好的各版本

2.手工编译

如果你想亲自进行编译,需要确保你的操作系统满足以下条件

  • Linux系统环境

  • 设备已连接网络

  • 已安装Git

  • 已安装make

  • 已安装Go 1.17或者更高版本

    # make命令说明
    
    # 构建
    make
    
    # 清理
    make clean
    
    # 构建并且打包32位
    make x32
    
    # 构建并且打包64位
    make x64
    
    # 构建并且打包所有架构
    make all

相关文件说明

billing       - Linux版本的billing服务器
billing.exe   - Windows版本的
config.yaml   - 配置文件

配置文件

配置文件和程序必须放在同一个目录下,配置文件支持两种格式yaml或者json,配置文件名称为config.yaml或者config.json,如果两个文件都存在,则yaml格式优先。

yaml格式的配置示例

# #后面的为注释
# 字符串可以不加引号,除非里面有#字符,所以如果数据库密码有#字符、空格时,就要加上引号
#
#billing服务器的ip,默认127.0.0.1即可
ip: 127.0.0.1
#
#billing服务器监听的端口(自定义一个未被占用的端口即可)
port: 12680
#
#MySQL服务器的ip或者主机名
db_host: localhost
#
#MySQL服务器端口
db_port: 3306
#
#MySQL用户名
db_user: root
#
#MySQL密码
db_password: 'root'
#
#账号数据库名(一般为web)
db_name: web
#
#只有在老版本MySQL报old_password错误时,才需要设置为true
allow_old_password: false
#
#用户登录的账号不存在时,是否引导用户进行注册
auto_reg: true
#
#允许的服务端连接ip,为空时表示允许任何ip,不为空时只允许指定的ip连接,
#allow_ips:
#  - 1.1.1.1
#  - 127.0.0.1
#
#登录的玩家总数量限制,如果为0则表示无上限
max_client_count: 500
#
#每台电脑最多可以同时登录的用户数量限制,如果为0则表示无上限
pc_max_client_count: 3

json格式的配置示例

{
  "ip": "127.0.0.1",
  "port": 12680,
  "db_host": "localhost",
  "db_port": 3306,
  "db_user": "root",
  "db_password": "root",
  "db_name": "web",
  "allow_old_password": false,
  "auto_reg": true,
  "allow_ips": [],
  "max_client_count": 500,
  "pc_max_client_count": 3
}

如果biiling和服务端位于同一台服务器的情况下,建议billing的IP使用127.0.0.1,这样可以避免绕一圈外网

本项目中附带的配置文件各项值为其默认值,如果你的配置中的字段的值与默认值相同,则可以省略相同的字段配置

billing (Windows服务器则是billing.exe)和配置文件放置于同一目录下

修改游戏服务器的配置文件....../tlbb/Server/Config/ServerInfo.ini中billing的配置

#........
[World]
IP=127.0.0.1
Port=777

[Billing]
Number=1
#billing服务器的ip
IP0=127.0.0.1
# billing服务器监听的端口
Port0=12680
#.........

最后启动游戏服务端、启动billing即可

启动与停止

Linux和Windows下的操作分别如下

启动

Linux下启动billing方法(前台模式)

#进入billing所在文件夹,比如/home
cd /home
#添加执行权限
chmod +x ./billing
#启动billing
./billing

Linux以守护进程后台运行billing的方法(daemon模式)

#进入billing所在文件夹,比如/home
cd /home
#添加执行权限
chmod +x ./billing
#启动billing
./billing up -d

Windows下,直接双击billing.exe即可

停止

停止billing命令

# 使用stop命令
./billing stop

# 也可以使用kill命令
kill -SIGTERM $(pgrep -f billing)

如果是前台模式,可以使用Ctrl + C 组合键停止服务器

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].