doUndo.py
1.06 KB
#!/usr/bin/python
# -*- coding: UTF-8 -*-
import requests
import json
import urllib3
from commons import common as com
from commons.MySession import my,s1
urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning)
class doUndo():
url="http://test.trace.diligrp.com:8393/newRegisterBill/doUndo.action?id=6668"
header={
"Host": "test.trace.diligrp.com:8393",
"Connection": "keep-alive",
"Accept": "application/json,text/javascript,*/*;q=0.01",
"User-Agent": "Mozilla/5.0(WindowsNT10.0;Win64;x64)AppleWebKit/537.36(KHTML,likeGecko)Chrome/91.0.4472.124Safari/537.36",
"X-Requested-With": "XMLHttpRequest",
"Referer": "http://test.trace.diligrp.com:8393/newRegisterBill/index.html",
"Accept-Encoding": "gzip,deflate",
"Accept-Language": "zh-CN,zh-TW;q=0.9,zh;q=0.8,en;q=0.7"}
def __init__(self):
self.url=doUndo.url.replace("http://test.",com.get_global_config("global_data", "environment", "en") )
self.header=doUndo.header
# tt=doUndo()
# re=my.get(url=tt.url,headers=tt.header)
# print(re.json())