恢复项目
This commit is contained in:
@@ -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]):
|
||||
|
||||
Reference in New Issue
Block a user