Commit efee5af1 authored by nanahira's avatar nanahira

update

parent 7e52d6d0
...@@ -864,7 +864,7 @@ class Room ...@@ -864,7 +864,7 @@ class Room
return return
if settings.modules.challonge.enabled and @started and !@kicked if settings.modules.challonge.enabled and @started and !@kicked
challonge.matches.update({ challonge.matches.update({
id: settings.modules.challonge.tournament_id, id: encodeURIComponent(settings.modules.challonge.tournament_id),
matchId: @challonge_info.id, matchId: @challonge_info.id,
match: @challonge_duel_log, match: @challonge_duel_log,
callback: (err, data) -> callback: (err, data) ->
...@@ -1521,7 +1521,7 @@ ygopro.ctos_follow 'JOIN_GAME', false, (buffer, info, client, server)-> ...@@ -1521,7 +1521,7 @@ ygopro.ctos_follow 'JOIN_GAME', false, (buffer, info, client, server)->
else else
ygopro.stoc_send_chat(client, '${loading_user_info}', ygopro.constants.COLORS.BABYBLUE) ygopro.stoc_send_chat(client, '${loading_user_info}', ygopro.constants.COLORS.BABYBLUE)
challonge.participants.index({ challonge.participants.index({
id: settings.modules.challonge.tournament_id, id: encodeURIComponent(settings.modules.challonge.tournament_id),
callback: (err, data) -> callback: (err, data) ->
if err or !data if err or !data
if err if err
...@@ -1538,7 +1538,7 @@ ygopro.ctos_follow 'JOIN_GAME', false, (buffer, info, client, server)-> ...@@ -1538,7 +1538,7 @@ ygopro.ctos_follow 'JOIN_GAME', false, (buffer, info, client, server)->
return return
client.challonge_info = found client.challonge_info = found
challonge.matches.index({ challonge.matches.index({
id: settings.modules.challonge.tournament_id, id: encodeURIComponent(settings.modules.challonge.tournament_id),
callback: (err, data) -> callback: (err, data) ->
if client.closed if client.closed
return return
......
...@@ -155,9 +155,9 @@ var UploadToChallonge = function() { ...@@ -155,9 +155,9 @@ var UploadToChallonge = function() {
var player_name = player_list[k]; var player_name = player_list[k];
sendResponse("正在上传玩家 "+player_name+" 至Challonge。"); sendResponse("正在上传玩家 "+player_name+" 至Challonge。");
challonge.participants.create({ challonge.participants.create({
id: challonge_config.tournament_id, id: encodeURIComponent(challonge_config.tournament_id),
participant: { participant: {
name: player_name name: encodeURIComponent(player_name)
}, },
callback: (function(player_name, success_count) { callback: (function(player_name, success_count) {
return function(err, data) { return function(err, 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