我試圖修復一個callbackurl,並在舊系統中嘗試檢索數據時可以簡單地使用$_POST['order_id']
。不幸的是,似乎不再可能。如何從file_get_contents(php://輸入)檢索信息?
新系統使用此行代碼:
$request_body = file_get_contents("php://input");
根據技術數據表中的order_id
現在簡稱id
,但我怎樣使用$request_body
找回它?像$request_body['id']
?
你爲什麼不'var_dump''$ request_body'來看看包含什麼? –