我正在使用 PHRETS 库来获取 rets 提要。在获取图像时,它为我提供了错误代码“20401”。从 rets api 获取图像的对象为:
$objects = $rets->GetObject('Property', 'CmmlRntl', '75290', '*', 0);
foreach ($objects as $photo) {
$photo = $photo->getContent();
if($photo){
echo "<hr><pre>";
var_dump($photo);
//echo "<img src=\"data:image/jpeg;base64," . base64_encode('') . "\" />";
echo "</pre><hr>";
}
}
输出为:
string '<RETS ReplyCode="20401" ReplyText="Requested Type not found." />' (length=64)
我怎样才能摆脱这个错误。?