move wsid to authz
This commit is contained in:
parent
26d30105d6
commit
3b10dc374f
@ -63,7 +63,7 @@ function openWebSocket() {
|
|||||||
}
|
}
|
||||||
$(".displayname").text(data.DisplayName);
|
$(".displayname").text(data.DisplayName);
|
||||||
window.accountId = data.id;
|
window.accountId = data.id;
|
||||||
window.authz = "accountId=" + data.id + "&nonce=" + data.Nonce;
|
window.authz = "accountId=" + data.id + "&nonce=" + data.Nonce + "&wsid=" + wsid;
|
||||||
if (window.dict) {
|
if (window.dict) {
|
||||||
updateLocElements();
|
updateLocElements();
|
||||||
}
|
}
|
||||||
@ -2582,7 +2582,7 @@ function disposeOfGear(category, oid) {
|
|||||||
];
|
];
|
||||||
revalidateAuthz().then(() => {
|
revalidateAuthz().then(() => {
|
||||||
$.post({
|
$.post({
|
||||||
url: "/api/sell.php?" + window.authz + "&wsid=" + wsid,
|
url: "/api/sell.php?" + window.authz,
|
||||||
contentType: "text/plain",
|
contentType: "text/plain",
|
||||||
data: JSON.stringify(data)
|
data: JSON.stringify(data)
|
||||||
});
|
});
|
||||||
@ -2604,7 +2604,7 @@ function disposeOfItems(category, type, count) {
|
|||||||
];
|
];
|
||||||
revalidateAuthz().then(() => {
|
revalidateAuthz().then(() => {
|
||||||
$.post({
|
$.post({
|
||||||
url: "/api/sell.php?" + window.authz + "&wsid=" + wsid,
|
url: "/api/sell.php?" + window.authz,
|
||||||
contentType: "text/plain",
|
contentType: "text/plain",
|
||||||
data: JSON.stringify(data)
|
data: JSON.stringify(data)
|
||||||
});
|
});
|
||||||
@ -2858,7 +2858,7 @@ for (const id of uiConfigs) {
|
|||||||
value = parseInt(value);
|
value = parseInt(value);
|
||||||
}
|
}
|
||||||
$.post({
|
$.post({
|
||||||
url: "/custom/setConfig?" + window.authz + "&wsid=" + wsid,
|
url: "/custom/setConfig?" + window.authz,
|
||||||
contentType: "application/json",
|
contentType: "application/json",
|
||||||
data: JSON.stringify({ [id]: value })
|
data: JSON.stringify({ [id]: value })
|
||||||
});
|
});
|
||||||
@ -2866,7 +2866,7 @@ for (const id of uiConfigs) {
|
|||||||
} else if (elm.type == "checkbox") {
|
} else if (elm.type == "checkbox") {
|
||||||
elm.onchange = function () {
|
elm.onchange = function () {
|
||||||
$.post({
|
$.post({
|
||||||
url: "/custom/setConfig?" + window.authz + "&wsid=" + wsid,
|
url: "/custom/setConfig?" + window.authz,
|
||||||
contentType: "application/json",
|
contentType: "application/json",
|
||||||
data: JSON.stringify({ [id]: this.checked })
|
data: JSON.stringify({ [id]: this.checked })
|
||||||
}).then(() => {
|
}).then(() => {
|
||||||
@ -2893,7 +2893,7 @@ document.querySelectorAll(".config-form .input-group").forEach(grp => {
|
|||||||
|
|
||||||
function doSaveConfigInt(id) {
|
function doSaveConfigInt(id) {
|
||||||
$.post({
|
$.post({
|
||||||
url: "/custom/setConfig?" + window.authz + "&wsid=" + wsid,
|
url: "/custom/setConfig?" + window.authz,
|
||||||
contentType: "application/json",
|
contentType: "application/json",
|
||||||
data: JSON.stringify({
|
data: JSON.stringify({
|
||||||
[id]: parseInt(document.getElementById(id).value)
|
[id]: parseInt(document.getElementById(id).value)
|
||||||
@ -2903,7 +2903,7 @@ function doSaveConfigInt(id) {
|
|||||||
|
|
||||||
function doSaveConfigFloat(id) {
|
function doSaveConfigFloat(id) {
|
||||||
$.post({
|
$.post({
|
||||||
url: "/custom/setConfig?" + window.authz + "&wsid=" + wsid,
|
url: "/custom/setConfig?" + window.authz,
|
||||||
contentType: "application/json",
|
contentType: "application/json",
|
||||||
data: JSON.stringify({
|
data: JSON.stringify({
|
||||||
[id]: parseFloat(document.getElementById(id).value)
|
[id]: parseFloat(document.getElementById(id).value)
|
||||||
@ -2913,7 +2913,7 @@ function doSaveConfigFloat(id) {
|
|||||||
|
|
||||||
function doSaveConfigStringArray(id) {
|
function doSaveConfigStringArray(id) {
|
||||||
$.post({
|
$.post({
|
||||||
url: "/custom/setConfig?" + window.authz + "&wsid=" + wsid,
|
url: "/custom/setConfig?" + window.authz,
|
||||||
contentType: "application/json",
|
contentType: "application/json",
|
||||||
data: JSON.stringify({
|
data: JSON.stringify({
|
||||||
[id]: document
|
[id]: document
|
||||||
@ -3040,7 +3040,7 @@ document.querySelectorAll("#account-cheats input[type=checkbox]").forEach(elm =>
|
|||||||
elm.onchange = function () {
|
elm.onchange = function () {
|
||||||
revalidateAuthz().then(() => {
|
revalidateAuthz().then(() => {
|
||||||
$.post({
|
$.post({
|
||||||
url: "/custom/setAccountCheat?" + window.authz /*+ "&wsid=" + wsid*/,
|
url: "/custom/setAccountCheat?" + window.authz,
|
||||||
contentType: "application/json",
|
contentType: "application/json",
|
||||||
data: JSON.stringify({
|
data: JSON.stringify({
|
||||||
key: elm.id,
|
key: elm.id,
|
||||||
@ -3112,7 +3112,7 @@ function doRemoveUnrankedMods() {
|
|||||||
req.done(inventory => {
|
req.done(inventory => {
|
||||||
window.itemListPromise.then(itemMap => {
|
window.itemListPromise.then(itemMap => {
|
||||||
$.post({
|
$.post({
|
||||||
url: "/api/sell.php?" + window.authz + "&wsid=" + wsid,
|
url: "/api/sell.php?" + window.authz,
|
||||||
contentType: "text/plain",
|
contentType: "text/plain",
|
||||||
data: JSON.stringify({
|
data: JSON.stringify({
|
||||||
SellCurrency: "SC_RegularCredits",
|
SellCurrency: "SC_RegularCredits",
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user