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