SDK相关的整理
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user