注意:以下文档只适用于TOP接口,请谨慎使用!

alibaba.decoration.ai.design.result (获取智能设计任务结果)

获取智能设计任务结果

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
unique_task_id String 必须 abc123 唯一任务id

响应参数

名称 类型 示例值 描述
result Result 结果
  • └ code
  • String
  • 结果code
  • 0-成功
  • data
  • AiDesignResp
  • 数据
  • └ cover_pic
  • String
  • 封面图
  • https://ezhome-prod-render-assets.oss-cn-beijing.aliyuncs.com/floorplan/render/images/2024-01-05/13447_cf11c4f5-e795-4f49-b402-9a786d106118/91dd3bfb-160d-4ab9-9ebc-a46b614feb70.front.jp
  • └ house_type_id
  • String
  • 户型id
  • e2163d56-28e1-41a8-aa0b-60d481206dba
  • └ image_id
  • String
  • 图片id
  • 43fe1f68-8e88-3bb3-4edd-c560
  • └ status
  • Number
  • 任务状态
  • 0-处理中,1-成功,2-失败
  • └ unique_task_id
  • String
  • 任务id
  • task_id_xxxx
  • └ url
  • String
  • 最终展示链接
  • https://pre-saas.shejijia.com/h5/pano/fission/c0b1c02b-4a0f-4191-a376-460f7639f96d
  • whole_house_data
  • AiDesignWholeHouseShareResp
  • 全屋漫游数据
  • └ design_name
  • String
  • 方案名称
  • 方案名称
  • extended_data
  • HouseTypeExtendedDataResp
  • 户型扩展数据
  • └ bottom
  • String
  • bottom
  • 数字
  • └ height
  • String
  • height
  • 数字
  • └ left
  • String
  • left
  • 数字
  • └ scale
  • String
  • scale
  • 数字
  • └ width
  • String
  • width
  • 数字
  • fission_whole_house_render_resps
  • FissionWholeHouseRenderResp []
  • 全景图列表
  • fission_camera_data
  • FissionCameraResp
  • 全景图数据
  • └ cam_pos_x
  • String
  • cam_pos_x
  • 相机参数
  • └ cam_pos_y
  • String
  • cam_pos_y
  • 相机参数
  • └ cam_pos_z
  • String
  • cam_pos_z
  • 相机参数
  • └ pano_name
  • String
  • pano_name
  • 全景图名称
  • └ target_x
  • String
  • target_x
  • 相机参数
  • └ target_y
  • String
  • target_y
  • 相机参数
  • └ target_z
  • String
  • target_z
  • 相机参数
  • └ render_url
  • String
  • 全景图链接
  • 全景图链接
  • └ house_type_url
  • String
  • 户型图链接
  • 户型图链接
  • └ msg
  • String
  • 错误消息
  • 错误消息
  • └ msg_code
  • String
  • 错误码
  • 错误码
  • └ msg_info
  • String
  • 详细错误信息
  • 详细错误信息
  • └ success
  • String
  • 成功标识
  • true-成功

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaDecorationAiDesignResultRequest req = new AlibabaDecorationAiDesignResultRequest();
req.setUniqueTaskId("abc123");
AlibabaDecorationAiDesignResultResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alibaba_decoration_ai_design_result_response>
    <result>
        <code>结果code</code>
        <data>
            <cover_pic>封面图</cover_pic>
            <house_type_id>户型id</house_type_id>
            <image_id>图片id</image_id>
            <status>任务状态</status>
            <unique_task_id>任务id</unique_task_id>
            <url>最终展示链接</url>
            <whole_house_data>
                <design_name>方案名称</design_name>
                <extended_data>
                    <bottom>bottom</bottom>
                    <height>height</height>
                    <left>left</left>
                    <scale>scale</scale>
                    <width>width</width>
                </extended_data>
                <fission_whole_house_render_resps>
                    <fission_whole_house_render_resp>
                        <fission_camera_data>
                            <cam_pos_x>cam_pos_x</cam_pos_x>
                            <cam_pos_y>cam_pos_y</cam_pos_y>
                            <cam_pos_z>cam_pos_z</cam_pos_z>
                            <pano_name>pano_name</pano_name>
                            <target_x>target_x</target_x>
                            <target_y>target_y</target_y>
                            <target_z>target_z</target_z>
                        </fission_camera_data>
                        <render_url>全景图链接</render_url>
                    </fission_whole_house_render_resp>
                </fission_whole_house_render_resps>
                <house_type_url>户型图链接</house_type_url>
            </whole_house_data>
        </data>
        <msg>错误消息</msg>
        <msg_code>错误码</msg_code>
        <msg_info>详细错误信息</msg_info>
        <success>成功标识</success>
    </result>
</alibaba_decoration_ai_design_result_response>

异常示例

  • XML示例
  • JSON示例
<error_response>
    <code>50</code>
    <msg>Remote service error</msg>
    <sub_code>isv.invalid-parameter</sub_code>
    <sub_msg>非法参数</sub_msg>
</error_response>

错误码解释

错误码 错误描述 解决方案

API工具

如何获得此API

FAQ

返回
顶部