0.0.54 • Published 3 years ago

kingshawn v0.0.54

Weekly downloads
-
License
mulan
Repository
-
Last release
3 years ago

安装shawnking包

yarn config set registry=https://deepin-npm.pkg.coding.net/deepin/shawnking/
npm install shawnking@latest --registry=https://deepin-npm.pkg.coding.net/deepin/shawnking/
yarn add shawnking@latest --registry=https://deepin-npm.pkg.coding.net/deepin/shawnking/

引用shawnking

var shawnking = require('shawnking');
    var shawn = new shawnking.shawn();

使用方法

处理云函数callType请求的类型

var callType=shawn.callType(event);

创建支付订单号

shawn.getPayOrder("phonenumber", "payType?wxpay||alipay||不传");

获取当前时间

shawn.getNowDateTime();

中文字符串转utf8

shawn.EncodeUtf8(s);

呼叫Robot【url, phone, msgtype, content】

shawn.callWxRobot(url, phone, msgtype, content)