恢复项目

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
@@ -18,7 +19,7 @@ async def get_process_request(pviguid: str, cguid: str):
:param pviguid: 工单列表请求返回的pviguid
:param cguid: 工单列表请求返回的cguid
"""
api_url = '/rest/sztaskworkordercommonrest/getTracing'
api_url = '/rest/sztaskworkordercommonrest/getTracing?'
headers = {
'Referer': f'{govc_api.ApiUrl}/rest/sztaskworkordercommonrest/getTracing'
}
@@ -26,8 +27,9 @@ async def get_process_request(pviguid: str, cguid: str):
'caseguid': cguid,
'pviguid': pviguid
}
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_process_request(response: HTTPResponse, retry_queue: asyncio.Queue[HTTPRequest]):