我正在将ERP与网上商店集成,而我插入客户的自定义页面无效 实况页面使用:
$data = file_get_contents('php://input');
要在Eclipse中调试,我已经替换了JSON上传文本:
$data = '[{"ARDivisionNo":"02","CustomerNo":"AMERCON","ContactCode":"MIKE THOMP","CustomerName":"American Concrete Service","fname":"Mike ","lname":"Thompson","EmailAddress":"nobody@gmail.com","Billing_Address1":"11733 Cardinal Circle","Billing_Address2":"","Billing_Address3":"","Billing_City":"Anaheim","Billing_State":"CA","Billing_Zip":"92625","UDF_FC_ENABLED":"Y","UDF_FC_CUSTOMERID":null,"UDF_FC_ADDRESS_BOOK_ID":null,"TelephoneNo1":"5557933264","FaxNo":"","UDF_FC_PW":"pass","UDF_FC_CUSTOMERTYPE":"SUPER"}]';
然而,调试器跳过此行,$ data仍然显示为未初始化。
我做错了什么?