Commit 075468c4c541854dc43e3feef5bfb64861271b8f
1 parent
a61f76d9
上传进门的方法
Showing
1 changed file
with
68 additions
and
0 deletions
commons/basic/registerRecord_save.py
0 → 100644
1 | +#!/usr/bin/python | |
2 | +# -*- coding: UTF-8 -*- | |
3 | +import urllib3 | |
4 | +from commons import common as com | |
5 | +from commons.MySession import hg | |
6 | +urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning) | |
7 | + | |
8 | + | |
9 | +class registerRecord_save(): | |
10 | + "录入批次号" | |
11 | + | |
12 | + def __init__(self): | |
13 | + self.url = "http://test.gateway.diligrp.com:8285/hg-trading/api/registerRecord/save" | |
14 | + self.header = { | |
15 | + "UAP_accessToken" :"demo", | |
16 | + "UAP_refreshToken" :"demo", | |
17 | + "UAP_firmId" :"15", | |
18 | + "Content-Type" :"application/json", | |
19 | + "Host" :"test.gateway.diligrp.com:8285"} | |
20 | + self.body = { | |
21 | + "accountId": 107792, | |
22 | + "cardNo": "888810026785", | |
23 | + "customerId": 141992, | |
24 | + "customerCode": "00131694", | |
25 | + "customerName": "特朗普vip", | |
26 | + "fixedphoneNumber": None, | |
27 | + "mobilephoneNumber": "16111111112", | |
28 | + "identityCardAddress": "", | |
29 | + "identityCardNo": "110101198001012390", | |
30 | + "identityCardType": "ID", | |
31 | + "registerDetailDtoList": [{ | |
32 | + "id": 0, | |
33 | + "areaId": 274, | |
34 | + "areaName": "东区01", | |
35 | + "quantity": 10, | |
36 | + "productId": 374690, | |
37 | + "registerRecordId": 0, | |
38 | + "remark": None, | |
39 | + "weight": 10, | |
40 | + "weightType": 0, | |
41 | + "created": None, | |
42 | + "createdById": 0, | |
43 | + "createdByName": None, | |
44 | + "createdByDepartmentId": 0, | |
45 | + "createdByDepartmentName": None, | |
46 | + "registerCertificateList": None, | |
47 | + "product": None, | |
48 | + "registerCertificateDtoList": None, | |
49 | + "productDto": { | |
50 | + "id": 0, | |
51 | + "originId": 510100, | |
52 | + "originName": "成都市", | |
53 | + "pieceWeight": 1, | |
54 | + "categoryId": 374690, | |
55 | + "categoryCode": "374690", | |
56 | + "categoryName": "苹果", | |
57 | + "created": None | |
58 | + } | |
59 | + }], | |
60 | + "registerFeeDtoList": [], | |
61 | + "tradePassword": "" } | |
62 | + | |
63 | + | |
64 | + | |
65 | + | |
66 | +tt=registerRecord_save() | |
67 | +re=hg.post(url=tt.url,headers=tt.header,json=tt.body,proxies=hg.myproxies) | |
68 | +print(str(re.json())) | |
0 | 69 | \ No newline at end of file | ... | ... |