Commit f581d79e authored by 测试账号's avatar 测试账号

增加城市限制

parent 5514d24a
...@@ -2295,6 +2295,33 @@ var sdk = { ...@@ -2295,6 +2295,33 @@ var sdk = {
},
/**
* @apiGroup C
* @apiName gameStart
* @api {数据存储} 数据存储 gameStart(存) 玩家进入游戏界面开始调用
* @apiParam {JSON} params 额外数据
* @apiSuccessExample {json} 示例:
* sdk.gameStart({},null)
*/
gameStart(params,callbackFunction){
if(sdk_conf.game_online)
{
this.setSceneStart(this.getGameOnlineKey(),params);
this.isGameStart = true;
}else
{
console.error("您没有打开游戏在线时长统计");
}
// var nowTime = new Date().getTime();
// var data = JSON.parse(this.getItem("游戏在线"));
// data.last_time = nowTime/1000;
// this.setItem("游戏在线",JSON.stringify(data));
}, },
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment