翻原碼看到接西寫的提示就繼續往下看
雖然對前端完全不熟,也能大概看出這段腳本能回傳資料給伺服器,因此,只要直接調用函式就能解鎖衣裝了。
補充
在小遊戲網頁下用console執行
function aaa (type,index) { $.ajax( { url: "/personal/unlockOutfit", method:'POST', data: {type: type, index: index}, dataType: 'JSON', error: function(err){console.error(err);}, success: function(data) { if(data.lock == "yes") { } else if(data.lock == "no") { } } }); } function run (type) { let i; for (i=1;i<=40;i++){ aaa(type,i); console.log(i) } } run("hair") run("face") run("shoes") run("clothes") |
這樣應該能解鎖全部衣裝