变量名 | 类 型 | 静态 | 数组 | 备 注 |
json | 类_json | | |
excel_url | 文本型 | | |
json_str = "
{""code"":1001,""log_id"":1914993456015482880,""message"":""Query task successfully!"",""result"":
{""create_time"":""2025-04-23 18:43:10"",""end_time"":""2025-04-23 18:43:12"",""percent"":100,""result_data"":
{""excel"":""https://bj.bcebos.com/document-restructure/home/work/xvision/bin/build/src/web/static/output/image/bfe6edca202f11f08c36376673b031ea/Na5YOd19/page-1.xlsx?authorization=bce-auth-v1%2F503b36e3f12c4c4c82d44ebe710cb64c%2F2025-04-23T10%3A43%3A13Z%2F2592000%2F%2Faf7d84247508f5bde09722a6986f9a242584541659b772cee706711f907ea073"",""word"":""https://bj.bcebos.com/document-restructure/home/work/xvision/bin/build/src/web/static/docx/Na5YOd19/Na5YOd19.docx?authorization=bce-auth-v1%2F503b36e3f12c4c4c82d44ebe710cb64c%2F2025-04-23T10%3A43%3A13Z%2F2592000%2F%2Fd5e3718ef3e9cf093840e8069ac9951c0852604aceef3d940e16c53a1ea0df02""
},""ret_code"":3,""ret_msg"":""宸插畬鎴?,""start_time"":""2025-04-23 18:43:10"",""task_id"":""Na5YOd19""
},""success"":true
}"
如果真 (json.
解析 (json_str, 真,
) =
假)
调试输出 ("JSON解析失败"
)
返回 ()
excel_url = json.
取通用属性 ("result.result_data.excel",
)调试输出 ("Excel链接:", excel_url
)