三连胜提交
This commit is contained in:
@@ -1633,7 +1633,7 @@ export default class Utils {
|
||||
}
|
||||
|
||||
//设置连胜次数
|
||||
static setWinStreak(callBack) {
|
||||
static setWinStreak(callBack, fields?: { winStreak?: number; threeWinStreak?: number }) {
|
||||
//@ts-ignore
|
||||
if ((typeof wx !== 'undefined' && wx !== null) || (typeof tt !== 'undefined' && tt !== null)) {
|
||||
let uid = cc.fx.StorageMessage.getStorage("uid");
|
||||
@@ -1644,7 +1644,7 @@ export default class Utils {
|
||||
let setData = {
|
||||
uid: cc.fx.GameConfig.GM_INFO.uid,
|
||||
action: 'save',
|
||||
winStreak: cc.fx.GameConfig.GM_INFO.winStreak,
|
||||
...(fields || { winStreak: cc.fx.GameConfig.GM_INFO.winStreak }),
|
||||
}
|
||||
Utils.POST("setWinStreak", setData, res => {
|
||||
if (res.code === 1) {
|
||||
|
||||
Reference in New Issue
Block a user