恢复项目

This commit is contained in:
zwf
2026-06-03 09:58:49 +08:00
parent dd72f9008f
commit 85ec8bf063
20 changed files with 305 additions and 97 deletions
+4 -2
View File
@@ -1,5 +1,6 @@
import asyncio
import json
from urllib.parse import urlencode
import pandas as pd
from tornado.httpclient import HTTPResponse, HTTPRequest
@@ -19,15 +20,16 @@ async def get_detail_request(cguid: str):
:param cguid: 工单列表请求返回的cguid
"""
api_url = '/rest/sztaskworkordercommonrest/getDetail'
api_url = '/rest/sztaskworkordercommonrest/getDetail?'
headers = {
'Referer': f'{govc_api.ApiUrl}/rest/sztaskworkordercommonrest/getDetail'
}
request_body = {
'caseguid': cguid, 'secret': 1
}
api_url += urlencode(request_body)
# 构造 API 请求
return await govc_api.new_api_request(api_url, request_body, headers=headers, method='GET')
return await govc_api.new_api_request(api_url,{}, headers=headers)
async def after_detail_request(response: HTTPResponse, retry_queue: asyncio.Queue[HTTPRequest]):