恢复项目

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
@@ -17,15 +18,16 @@ async def get_requster_request(cguid: str):
:param cguid: 工单列表请求返回的cguid
"""
api_url = '/rest/sztaskworkordercommonrest/getInformation'
api_url = '/rest/sztaskworkordercommonrest/getInformation?'
headers = {
'Referer': f'{govc_api.ApiUrl}/rest/sztaskworkordercommonrest/getInformation'
}
request_body = {
'caseguid': cguid, 'secret': 0
}
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_requester_request(response: HTTPResponse, retry_queue: asyncio.Queue[HTTPRequest]):