generalCustomerLoan_save.py
1.58 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# -*- 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())