mirror of
https://github.com/JustArchiNET/ArchiSteamFarm.git
synced 2026-01-01 14:10:53 +00:00
Rewrite hardcoded json
This commit is contained in:
@@ -847,7 +847,7 @@ namespace ArchiSteamFarm {
|
||||
{ "partner", partnerID.ToString() },
|
||||
{ "tradeoffermessage", "Sent by ASF" },
|
||||
{ "json_tradeoffer", JsonConvert.SerializeObject(trade) },
|
||||
{ "trade_offer_create_params", string.IsNullOrEmpty(token) ? "" : $"{{\"trade_offer_access_token\":\"{token}\"}}" }
|
||||
{ "trade_offer_create_params", string.IsNullOrEmpty(token) ? "" : new JObject { { "trade_offer_access_token", token } }.ToString(Newtonsoft.Json.Formatting.None) }
|
||||
})) {
|
||||
if (!await WebBrowser.UrlPostRetry(request, data, referer).ConfigureAwait(false)) {
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user