Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/javascript/466.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Javascript Kongregate统计API仅在预览模式下工作_Javascript_Kongregate - Fatal编程技术网

Javascript Kongregate统计API仅在预览模式下工作

Javascript Kongregate统计API仅在预览模式下工作,javascript,kongregate,Javascript,Kongregate,我用HTML5和Javascript制作了一个游戏,并上传到了Kongregate。游戏使用Kongregate统计API报告玩家达到的级别和高分 我已经上传了游戏,并在预览模式下进行了测试。一切正常,游戏结束后,玩家可以在高分表中看到自己的分数 这就是web开发人员控制台中显示的内容 [Konduit] Kongregate Packet[kong_web] stat.submit: {"stats":{"121151":1},"success":true} [Game] StatServic

我用HTML5和Javascript制作了一个游戏,并上传到了Kongregate。游戏使用Kongregate统计API报告玩家达到的级别和高分

我已经上传了游戏,并在预览模式下进行了测试。一切正常,游戏结束后,玩家可以在高分表中看到自己的分数

这就是web开发人员控制台中显示的内容

[Konduit] Kongregate Packet[kong_web] stat.submit: {"stats":{"121151":1},"success":true} [Game] StatServices.submit ( maxlevel, 1 ) game.html
[Konduit] [Game->Service]: stat.submit: {"req.id":1,"stats":[{"value":1,"name":"maxlevel"}]} 
Object { flushlow: Array[1] } 
Object { statList: 1 } 
[Konduit] Kongregate Packet[kong_web] stat.submit: {"stats":{"121151":1},"success":true} 
[Konduit] [maxlevel-ServerUpdate]: submitted=1 
[Konduit] [Service->Game]: stat.submit: {"stats":{"121151":1},"success":true} 
然而,当我按下发布按钮后,它突然坏了。电话仍在继续,但没有反馈

显示了指示连接成功的行

[Service->Game]: hello: {"success":true} [服务->游戏]:您好:{“成功”:真的} 然而,表明stat提交成功的那个并没有

[Game] StatServices.submit ( maxlevel, 1 ) game.html [Konduit] [Game->Service]: stat.submit: {"stats":[{"value":1,"name":"maxlevel"}],"req.id":1} [Game]StatServices.submit(maxlevel,1)Game.html [Konduit][Game->Service]:stat.submit:{“stats”:[{“value”:1,“name”:“maxlevel”}],“req.id”:1} 编辑:现在它似乎工作正常,我甚至没有改变任何东西