🚨 Shai-Hulud Strikes Again:834 Packages Compromised.Technical Analysis
Socket
Book a DemoInstallSign in
Socket

liusha

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

liusha

流沙流量充值接口

latest
Source
npmnpm
Version
0.0.3
Version published
Maintainers
1
Created
Source

流沙流量充值接口

DEMO

var liusha = require('liusha')({
	apiUrl:"",//流沙流量充值地址http://xxx.xxx.cn/(测试)
	appid:"",//appid
	appkey:""//appkey
});
//直充接口
liusha.flowTopUp({
        mobile:"",//手机号
        skuId:""//套餐id
},function(err,data){
        //todo
});

API:

flowTopUp : 直充到用户手机上

query : 充值结果查询

exists : 判断充值订单是否存在

success : 判断充值订单是否成功到账

balance : 查询账户余额

flowTopUp:流量充值接口
liusha.flowTopUp({ 
    mobile:"",//手机号
    skuId:""//套餐id
},function(err,data){
	//todo
});
query:充值结果查询
liusha.query(orderId,function(err,data){
	//todo
});
exists:判断充值订单是否存在
liusha.exists(orderId,function(err,data){
	//todo
});
success:判断充值订单是否成功到账
//status 为可选(默认是2),0表示充值失败,1表示充值中,2表示充值成功
liusha.success(orderId,status,function(err,data){
	//todo
});
balance:查询余额
liusha.balance(function(err,data){
	//todo
});

Keywords

联通

FAQs

Package last updated on 01 Feb 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts