getSingleWithoutValidate.py
978 Bytes
# -*- coding: utf-8 -*-
from commons.MySession import hg
class getSingleWithoutValidate():
"大客户模式——刷卡"
def __init__(self):
self.url = "http://test.gateway.diligrp.com:8285/account-service/api/account/getSingleWithoutValidate"
self.header = {
"Connection" :"keep-alive",
"Content-Length" :"25",
"Accept" :"application/json, text/plain, */*",
"UAP_accessToken" :".-.--",
"ignoreCancelToken" :"true",
"UAP_refreshToken" :".-.--",
"Content-Type" :"application/json;charset=UTF-8",
"Accept-Language" :"zh-CN,zh;q=0.9",
"Accept-Encoding" :"gzip, deflate"
}
self.body = {"cardNo":"888810026785"}
# tt = getSingleWithoutValidate()
# re = hg.post(url = tt.url,json = tt.body,headers = tt.header,proxies=hg.myproxies)
# print(re.json())