SDK相关的整理

This commit is contained in:
chen wei bo
2025-09-26 17:34:07 +08:00
parent ed525d9ed2
commit 361afaacf2
40 changed files with 713 additions and 4379 deletions
+18 -18
View File
@@ -120,24 +120,24 @@ export default class GameManager {
}
}
//友盟记录关卡
if (umRecords.length > 0 && SDKManager.umaSwt()){
let umr = umRecords.join(',')
HttpUnit.ins.sendLevelRecord({level_ids:umr}, (_data)=>{
logger.log('友盟记录关卡',_data)
let userId = HttpUnit.GetID()
let curDate = Utils.GetNowFormatDay()
for (let i = 0; i < umRecords.length; i++) {
let lvId = umRecords[i]
let _cfg = GameManager._levelCfgMap[lvId]
SDKManager.umaEvent(SDKManager.Uma_Event_LvUnlock, {
lvId: lvId,
userId: userId,
time: curDate,
type: _cfg.unlock_type
})
}
})
}
// if (umRecords.length > 0 && SDKManager.I.umaSwt()){
// let umr = umRecords.join(',')
// HttpUnit.ins.sendLevelRecord({level_ids:umr}, (_data)=>{
// logger.log('友盟记录关卡',_data)
// let userId = HttpUnit.GetID()
// let curDate = Utils.GetNowFormatDay()
// for (let i = 0; i < umRecords.length; i++) {
// let lvId = umRecords[i]
// let _cfg = GameManager._levelCfgMap[lvId]
// SDKManager.I.umaEvent(SDKManager.Uma_Event_LvUnlock, {
// lvId: lvId,
// userId: userId,
// time: curDate,
// type: _cfg.unlock_type
// })
// }
// })
// }
}
/**设置关卡星级 */
public static SetLevelStar(levelId: string, star: number) {