提交 08033fbc 作者: 王进

加入等级上报接口

上级 86e023e1
...@@ -496,6 +496,16 @@ class TTSDK { ...@@ -496,6 +496,16 @@ class TTSDK {
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 _self = this const _self = this
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论