vipCustomerLoan_save.py 1.32 KB
# -*- coding: utf-8 -*-
"""
@Time : 2021/8/31 14:43
@Auth : wlm
@File :createAndTrade.py
@IDE :PyCharm
"""
"""
大客户模式——新增预付款
"""

from commons.MySession import hg

class vipCustomerLoan_save():

    def __init__(self):
        self.url = "http://test.gateway.diligrp.com:8285/hg-trading/api/vipCustomerLoan/save"
        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 = {"accountId":107792,"tradeDateStart":"2021-09-07","tradeDateEnd":"2021-09-07","customerId":141992,"customerName":"特朗普vip","customerAccountId":107792,"customerIdcard":"110101198001012390","customerCode":"00131694"}
        self.sql= "SELECT balance*0.01 FROM  dili_upay.`upay_fund_account` where account_id = 107792;"

# tt = getSingleWithoutValidate()
# re = hg.post(url = tt.url,json = tt.body,headers = tt.header,proxies=hg.myproxies)
# print(re.json())