RecursiveG / UniSkinServer

[No longer active, check https://github.com/xfl03/CustomSkinLoaderAPI] Universal Skin API & Universal Skin Server for Minecraft
13 stars 4 forks source link

两个删除问题 #5

Closed wfjsw closed 9 years ago

wfjsw commented 9 years ago

delete不支持POST的提交方法,导致服务器400

修改意见: 第223行

    var token=$("#token").val()
    $.ajax({
      url: "/upload?type="+modelName+"&token="+session_token,
      type: "DELETE",
      //dataType: "json",
      success: function(data,stat){
        //alert(stat);
        setTimeout(refresh,500);
      }
    });

第266行

    $('#mgr-error').html('');
    if(confirm('请再次确认删除账户')){
      $.ajax({
        url: "/reg?pwd="+$("#currentpwd").val()+"&token="+session_token,
        type: "DELETE",
        dataType: "json",
        success: function(data,stat){
          //alert(data.msg);
RecursiveG commented 9 years ago

本地python3.4.2+tornado4.0.2,测试没有发现400错误。

wfjsw commented 9 years ago

已投入生产使用的服务器,不再进行测试