batchSettlement.py
884 Bytes
# -*- coding: utf-8 -*-
# @Time : 2021/9/8 17:51
# @Author : Ljq
# @File : batchSettlement.py
# @Software: PyCharm
"""
批号结算页面
"""
import json,time,random,re
from commons.scripts import dealContentType as dct
from commons.scripts import jsonToUrlCode
from commons.scripts import replaceJsonData as rJD
import urllib.parse
from commons.MySession import sessionHg
host = "http://test.gateway.diligrp.com:8285"
def settle_query(session=None,host=None,batchCode=None):
"""
登记单状态变更
:param batchCode:等级单号
:param _t:时间戳
"""
url = host+"/hg-trading/api/settle/query"
headers = {}
data = {"batchCode":str(batchCode)}
res = session.useHeadersRequests(method="GET",url=url,params=data,headers=headers)
return res
# res = settle_query(session=sessionHg,host=host,batchCode="2109000319")
# print(res.text)