1.1.5 • Published 6 years ago

pomelo-qpgames-dba-manage v1.1.5

Weekly downloads
1
License
MIT
Repository
-
Last release
6 years ago

###安装 npm install pomelo-qpgames-dba-manage

###使用方法

在app.js中配置
let dba = require('pomelo-qpgames-dba-manage');
app.use(dba,{});
使用
app.get('dbaService').exec(model,fun);    

API exec 已存模块

根据机器码/第三方账号等获得UID
app.get('dbaService').exec('platform','getUidByPid',pid,ptype)

*pid 第三方账号/机器码
*ptype 登陆方式 0 机器码
创建UID
app.get('dbaService').exec('transaction.createAccount','create',args) 

*args 是一个对象 
args.appid 渠道编号 
args.ptype 登陆类型 0 游客登陆 
args.pid   机器码/第三方账号 
args.pName 昵称
args.loginIp 登陆的IP地址
args.lastAppId 最后登陆的IP
args.ver 登陆的版本号
根据UID获得账号信息
app.get('dbaService').exec('account','getInfoByUid',uid)
根据UID获得金币信息
app.get('dbaService').exec('account','getChips',uid)
增加/减少用户金币
app.get('dbaService').exec('account','addChips',uid, chips, flag, args)

*flag 0 增加 1 减少
*args 是一个对象 args.mode 增加金币MODE args.playId 牌局输赢应带上该ID
添加用户游戏详情
  app.get('dbaService').exec('gameInfo','addPlay',uid,gameId,payoff,chips)
  
  *gameId 游戏编号
  *payoff 输/赢 (lost/win)
  *chips  输赢金币
  
   
    
1.1.5

6 years ago

1.1.3

6 years ago

1.1.1

6 years ago

1.1.0

6 years ago

1.0.8

6 years ago

1.0.6

6 years ago

1.0.5

6 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago