generalCustomerLoan_enforce.py
903 Bytes
# -*- coding: utf-8 -*-
from commons import common as com
from commons.MySession import hg
class generalCustomerLoan_enforce():
"普通客户模式——执行借款"
def __init__(self):
self.url = "http://test.gateway.diligrp.com:8285/hg-trading/api/generalCustomerLoan/enforce/66?_t="+str(com.time_stamp())
self.header = {
"Connection" :"keep-alive",
"Accept" :"application/json, text/plain, */*",
"UAP_accessToken" :".-.---",
"UAP_refreshToken" :".-.---",
"Accept-Language" :"zh-CN,zh;q=0.9",
"Accept-Encoding" :"gzip, deflate"
}
self.sql='SELECT id FROM customer_loan WHERE batch="2109000088";'
# tt = generalCustomerLoan_enforce()
# re = hg.get(url = tt.url,headers = tt.header,proxies=hg.myproxies)
# print(re.json())