setOrderLineNumber("1"); //api入参校验逻辑开关,当测试稳定之后建议设置为 false 或者删除该行 $req -> setCheckParam('true'); $serverUrl = "http://opensit.cnsuning.com/api/http/sopRequest"; $appKey = "a3de6c25b13856ca68b5e7ebb6a4cdee"; $appSecret = "820b0b5b375ea950197eec48ad54a00a"; $client = new DefaultSuningClient($serverUrl,$appKey,$appSecret,'json'); $resp = $client -> execute($req); print_r("返回响应报文:".$resp); ?>