消消方块阵换皮表情
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

216 lines
7.1 KiB

1 week ago
declare namespace ZYSDK {
class ZYSDK {
/**
* sdk
* gid: 游戏gid
* invitecode
*/
static initSdk(gid?:string, invitecode?:string);
/**
*
* @param isFinish
*/
static reportVideo(isFinish: boolean);
/**
*
* @param action
*/
static reportUserAction(action: string);
/**
*
* @param task
* @param action
* @param isAD 广true广false广
*/
static reportUserAction2(task: string, action: string, isAD: boolean);
/**
*
*
*/
static getLevel();
/**
*
* userid
*/
static getUserId();
/**
*
*/
static subscribe(templateid);
/**
* 广广
*/
static isAdUser();
/**
* 0: 自然流量; 1: 广告投放
*/
static getScenes();
/**
*
*/
static getGameData(onSuccess: Function, onFail: Function);
/**
*
* level: 玩家关卡进度, ""
* tm: 玩家总时长, 0
* attr1: 玩家属性1, ""
* attr2: 玩家属性2, ""
* attr3: 玩家属性3, ""
*
*/
static setGameData(gamedata:string, level:string, tm:number, attr1:string, attr2:string, attr3:string, onSuccess: Function, onFail: Function);
/**
*
*
* 回调函数定义: onCallback(goodslist, msg)
* goodslist: 道具列表null
* msg: 失败原因
*/
static getGoodsList(onCallback: Function);
/**
*
*
* 回调函数定义: onCallback(status, msg)
* status: 订单状态, 1 0
* msg: 错误原因
*/
static confirmOrder(orderid:string, onCallback: Function);
/**
*
*/
static getGameConfig(configname:string, onSuccess: Function, onFail: Function);
/**
* 0 1
*/
static getAdLevel();
/**
*
*/
static getAdInterval();
/**
*
*/
static getCustomValue();
/**
*
* "2025-11-09"
*/
static getActiveDate();
/**
* unix时间戳
*/
static getTimestamp(onSuccess: Function, onFail: Function);
/**
*
* score: 分数
* category: 排行榜类型
* imgurl: 头像url
* nickname: 昵称
* region: 地区
* expiredate: 指定玩家退出榜单日期2026-01-07, 2026-01-07 23:59:59 退;
* "" 退
* rankingtype: 排行榜类型
* 1
* 2
*/
static setRankingData(score:number, category:string, imgurl:string, nickname:string, region:string, expiredate:string, rankingtype:number);
/**
*
* category: 排行榜类型
* topcnt: 取排行榜前topcnt玩家
* preset: 预设值
* yestoday: 昨天
* today: 今天
* rankingtype: 排行榜类型
* 1
* 2
*/
static getRankingList(category:string, topcnt:number, preset:string, rankingtype:number, onSuccess: Function, onFail: Function);
/**
*
* userid: 被赞玩家的useridopenid
* onSuccess(param) : param json对象
* {
* "zan_cnt": 0,
* "invite_cnt": 0,
* "invite_comsume_cnt": 0
* }
*/
static zanUser(userid:string, onSuccess: Function, onFail: Function);
/**
*
* cnt: 消耗次数
* onSuccess(param) : param json对象
* {
* "zan_cnt": 0,
* "invite_cnt": 0,
* "invite_comsume_cnt": 0
* }
*/
static consumeInviteCount(cnt:number, onSuccess: Function, onFail: Function);
/**
*
* * onSuccess(param) : param json对象
* {
* }
*/
static setInviteSuccess(onSuccess: Function, onFail: Function);
/**
* ,
* userid: 获取属性数据的玩家
* onSuccess(param) : param json对象
* {
* "zan_cnt": 0,
* "invite_cnt": 0,
* "invite_comsume_cnt": 0
* }
*/
static getUserAttribute(userid:string, onSuccess: Function, onFail: Function);
/**
*
*/
static decryptWithKey(data: string, deckey: string);
/**
*
*/
static encryptWithKey(data: string, deckey: string);
/**
* base64解码
*/
static b64decode(data: string);
/**
* base64编码
*/
static b64encode(data: string);
}
}