generalCustomerLoan_save.py 1.58 KB
# -*- coding: utf-8 -*-


from commons.MySession import hg

class generalCustomerLoan_save():
    "普通客户模式——新增预付款"
    def __init__(self):
        self.url = "http://test.gateway.diligrp.com:8285/hg-trading/api/generalCustomerLoan/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 = {
                    "batch": "2109000073",
                    "customerName": "拜登",
                    "customerIdcard": "110101198001012331",
                    "customerCard": "888810043394",
                    "tradeAmountText": "20.00",
                    "availableAmountText": "10.11",
                    "feeAmountText": "9.89",
                    "advancePrice": 2000,
                    "ratifierName": "杭果借款",
                    "tradePrice": 2000,
                    "feePrice": 989,
                    "customerId": 141995,
                    "customerAccountId": 107791,
                    "ratifierId": 453
                }

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