generalCustomerLoan_enforce.py
996 Bytes
# -*- coding: utf-8 -*-
"""
@Time : 2021/8/31 14:43
@Auth : wlm
@File :createAndTrade.py
@IDE :PyCharm
"""
"""
普通客户模式——执行借款
"""
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())