想問我個wishlist 有d game 落咗架, 唔比你tick 返走佢, 其實有無得搞?
即係例如我實際得5隻game, 但個wishlist 佢show 我有6隻game on list, 我想佢show返5隻
(function () {
var modal;
function listRequest() {
modal = ShowBlockingWaitDialog('請求中', '獲取願望單中...');
jQuery.post('https://store.steampowered.com/dynamicstore/userdata/', {}).done(function (res) {
for (var i = 0; i < g_Wishlist.rgAllApps.length; i++) {
for (var j = 0; j < res.rgWishlist.length; j++) {
if (res.rgWishlist[j] == g_Wishlist.rgAllApps[i]) {
delete res.rgWishlist[j];
}
}
}
var delArray = [];
for (var j = 0; j < res.rgWishlist.length; j++) {
if (res.rgWishlist[j] != null) {
delArray.push(res.rgWishlist[j]);
}
}
modal.Dismiss();
webRequest(delArray, 0);
});
}
function webRequest(packages, index) {
if (index >= packages.length) {
location.reload();
return;
};
if (packages[index] == null) {
webRequest(packages, index + 1);
return;
}
modal = ShowBlockingWaitDialog("清理中 " + (index) + "/" + packages.length, '刪除願望單遊戲(' + packages[index] + ')中,請稍候...');
jQuery.post(g_strWishlistBaseURL + 'remove/', {
appid: packages[index],
sessionid: g_sessionID
}).done(function (res) {
modal.Dismiss();
webRequest(packages, index + 1);
});
}
listRequest();
})();