Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix remove purchase order error #185

Open
disanyixing opened this issue Sep 29, 2023 · 0 comments
Open

Fix remove purchase order error #185

disanyixing opened this issue Sep 29, 2023 · 0 comments

Comments

@disanyixing
Copy link

disanyixing commented Sep 29, 2023

image

SteamMarket.prototype.removeListing = function (item, callback /*err, data*/) {
        var sessionId = readCookie('sessionid');
            $.ajax({
                type: "POST",
                url: window.location.protocol + '//steamcommunity.com/market/removelisting/' + item,
                data: {
                    sessionid: sessionId
                },
                success: function (data) {
                    callback(ERROR_SUCCESS, data);
                },
                error: function () {
                    // return callback(ERROR_FAILED);
                    $.ajax({
                        type: "POST",
                        url: window.location.protocol + '//steamcommunity.com/market/cancelbuyorder/',
                        data: {
                            sessionid: sessionId,
                            buy_orderid: item
                        },
                        success: function (data) {
                            callback(ERROR_SUCCESS, data);
                        },
                        error: function () {
                            return callback(ERROR_FAILED);
                        },
                        crossDomain: true,
                        xhrFields: {
                            withCredentials: true
                        },
                        dataType: 'json'
                    });
                },
                crossDomain: true,
                xhrFields: {
                    withCredentials: true
                },
                dataType: 'json'
            });
    };

Before fix:
1%_)65AA1{(WLB8J483K)7A

After fix:
III4R0FK R14WZ`8N@JK0

NG X% L`9TCT46UDGQ)FR}O

@disanyixing disanyixing changed the title Fix remove purchase order Fix remove purchase order error Sep 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant