提交 3178ff6b 作者: 王进

增加等级上报接口,自定义接口

上级 3f521554
...@@ -516,6 +516,16 @@ class WechatSDK { ...@@ -516,6 +516,16 @@ class WechatSDK {
public LoginReport() { public LoginReport() {
this.ReportData({ action: 'login' }) this.ReportData({ action: 'login' })
} }
// 上报等级
public RoleLevelReport(roleInfo) {
var reportData = this.deepCopy(roleInfo, { action: 'roleUpgrade' });
this.ReportData(reportData);
}
// 自定义上报
public CustomReport(custInfo) {
var reportData = this.deepCopy(custInfo, { action: 'customevent' });
this.ReportData(reportData);
}
// 数据上报接口,外部调用,参数中必须含有action值 // 数据上报接口,外部调用,参数中必须含有action值
public ReportData(portData) { public ReportData(portData) {
const that = this const that = this
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论