我正在使用 Autodesk Forge API 调用:
// this call starts processing the xdDFs4kdYMGtjo2B7SA8R7PPVKsFK2tOo3JPRNHMMf0 photoscene
$curl_cmd =
"curl -s $FORGE_URL/photo-to-3d/v1/photoscene/xdDFs4kdYMGtjo2B7SA8R7PPVKsFK2tOo3JPRNHMMf0 " .
"-X 'POST' " .
"-H 'Content-Type: application/json' " .
"-H 'Authorization: Bearer $access_token' "
;
$json = shell_exec ( $curl_cmd );
...然后我反复拨打以下电话:
// this call starts processing the xdDFs4kdYMGtjo2B7SA8R7PPVKsFK2tOo3JPRNHMMf0 photoscene
$curl_cmd = "curl -s $FORGE_URL/photo-to-3d/v1/photoscene/xdDFs4kdYMGtjo2B7SA8R7PPVKsFK2tOo3JPRNHMMf0/progress " .
"-H 'Content-Type: application/json' " .
"-H 'Authorization: Bearer $access_token' "
;
$json = shell_exec ( $curl_cmd );
当我解码 $json 返回变量时,它具有以下值:
progressmsg="已创建" 进度="0" photosceneID="xdDFs4kdYMGtjo2B7SA8R7PPVKsFK2tOo3JPRNHMMf0"
每次我检查进度时,API 都会报告它永远处于这种状态。它从不显示 API 参考中描述的“处理”状态,并且进度 % 变量保持为 0。但 API 也从不返回错误。
是什么导致 Photoscene 保持冻结在这种“创建”状态,而不进行“处理”?我怎样才能让工作开始处理”?