當我發送交易請求時,我在兩個蒸汽帳戶中都收到了「tradeofferid」的回覆。 但是當我檢查getoffers list request中的「tradeofferId」時,我只能得到一個蒸汽帳戶的「tradeofferid」。從一個蒸汽帳戶獲取tradeofferId,但不從另一個蒸汽帳戶獲取
我不明白這兩個帳戶之間有什麼不同。這兩個帳戶具有相同的設置,並且都是活動帳戶。但一個帳戶的餘額爲零。
當我發送交易請求時,我在兩個蒸汽帳戶中都收到了「tradeofferid」的回覆。 但是當我檢查getoffers list request中的「tradeofferId」時,我只能得到一個蒸汽帳戶的「tradeofferid」。從一個蒸汽帳戶獲取tradeofferId,但不從另一個蒸汽帳戶獲取
我不明白這兩個帳戶之間有什麼不同。這兩個帳戶具有相同的設置,並且都是活動帳戶。但一個帳戶的餘額爲零。
您需要根據您想要查看的優惠來修改查詢。特別是,還有IEconService/GetTradeOffers
方法的以下兩個參數:
get_sent_offers
:設置爲1
獲得報價,該帳戶已派出get_received_offers
:設置爲1
獲得報價的帳戶接收。<?php
$url = 'https://steamcommunity.com/tradeoffer/new/send';
\t $data = array(
\t \t 'sessionid' => $sessionId,
\t \t 'serverid' => '1',
\t \t 'partner' => '76561198316682086',
\t \t 'tradeoffermessage' => 'test',
\t \t 'trade_offer_create_params' => '{"trade_offer_access_token": "5xsvx0BF"}', \t
\t \t 'json_tradeoffer' => '{"newversion":true,"version":2,"them":{"assets":[],"currency":[],"ready":false},"them":{"assets":[{"appid":730,"contextid":"2","amount":1,"assetid":"8606185394"},{"appid":730,"contextid":"2","amount":1,"assetid":"8606185369"}],"currency":[],"ready":false}}'
\t);
\t $c = curl_init();
\t curl_setopt($c, CURLOPT_HEADER, false);
\t curl_setopt($c, CURLOPT_NOBODY, false);
\t curl_setopt($c, CURLOPT_URL, $url);
\t curl_setopt($c, CURLOPT_SSL_VERIFYHOST, 0);
\t curl_setopt($c, CURLOPT_USERAGENT, "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.0.3705; .NET CLR 1.1.4322)");
\t curl_setopt($c, CURLOPT_COOKIE, $cookies);
\t curl_setopt($c,enter code here CURLOPT_POST, 1);
\t curl_setopt($c, CURLOPT_POSTFIELDS, http_build_query($data));
\t curl_setopt($c, CURLOPT_RETURNTRANSFER, true);
\t curl_setopt($c, CURLOPT_HTTPHEADER, array('Referer: https://steamcommunity.com/tradeoffer/new/?partner=356416358&token=5xsvx0BF'));
\t curl_setopt($c, CURLOPT_SSL_VERIFYPEER, 0);
\t curl_setopt($c, CURLOPT_FOLLOWLOCATION, 1);
\t curl_setopt($c, CURLOPT_CUSTOMREQUEST, strtoupper('POST'));
\t $response = curl_exec($c);
\t curl_close($c);
\t echo $response;
//get offerid in response. {"tradeofferid":12345..}
//but not found that offerid in getoffers
$getOffers = array(
\t \t "get_received_offers"=>'1',
\t \t "get_sent_offers"=>'1',
\t \t //"active_only"=>'1',
\t);
\t $getoffersData = array();
\t $getoffersData = $steam->getOffers($getOffers);
\t echo "<pre>";print_r($getoffersData); \t
?>
謝謝回答。但我在這裏說..我有一個網站帳戶和兩個用戶帳戶。我通過將資產發送到我的網站帳戶並通過第二個用戶帳戶加入遊戲來將資產發送到我的網站帳戶來創建一個用戶的遊戲。然後通過getoffers請求獲取offer的列表buid從第一個帳戶生成的offerid沒有在列表中找到...我已經設置了get_sent_offers和get_received_offers爲1. –
您應該更新您的問題,可能需要使用一些代碼和API回覆。根據您的問題描述,任何人都無法提供幫助。 – Koraktor