npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

pomelo-qpgames-dba-manage

v1.1.5

Published

ma yi ya hei

Downloads

11

Readme

###安装 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  输赢金币