This commit is contained in:
ckcz123 2018-01-17 20:35:29 +08:00
parent 8fe7dd3848
commit 54468aafa0

View File

@ -153,7 +153,7 @@ events.prototype.gameOver = function (success, fromReplay) {
return; return;
} }
var username = prompt("恭喜通关请输入你的ID"); var doUpload = function(username) {
if (username==null) username=""; if (username==null) username="";
// upload // upload
@ -179,8 +179,15 @@ events.prototype.gameOver = function (success, fromReplay) {
xhr.send(formData); xhr.send(formData);
core.restart(); core.restart();
return; }
core.drawConfirmBox("你想记录你的ID和成绩吗", function () {
doUpload(prompt("请输入你的ID"));
}, function () {
doUpload("");
})
return;
} }
// 下载录像 // 下载录像