Commit 80107c2d36a7add66580e33a05b6a345925397dd
1 parent
c0c8482e
上传用例
Showing
4 changed files
with
46 additions
and
7 deletions
commons/api/hg/loan_generalCustomer/__init__.py
0 → 100644
commons/api/hg/loan_vipCustomer/__init__.py
0 → 100644
commons/api/hg/transaction/createAndTrade.py
... | ... | @@ -64,16 +64,13 @@ class createAndTrade(): |
64 | 64 | ] |
65 | 65 | } |
66 | 66 | |
67 | - def __init__(self,market): | |
68 | - self.market = market | |
69 | - self.url = createAndTrade.url.replace("http://test.",com.get_global_config("global_data", "environment", "en") ) | |
67 | + def __init__(self): | |
68 | + self.url = createAndTrade.url | |
70 | 69 | self.header = createAndTrade.header |
71 | - self.header["UAP_accessToken"] = self.market.cookies["UAP_accessToken"] | |
72 | - self.header["UAP_refreshToken"] = self.market.cookies["UAP_refreshToken"] | |
73 | 70 | self.body = createAndTrade.body |
74 | 71 | |
75 | 72 | |
76 | -crat = createAndTrade(hg) | |
73 | +crat = createAndTrade() | |
77 | 74 | print(crat.body) |
78 | 75 | re = hg.post(url = crat.url,json = crat.body,headers = crat.header,proxies=hg.myproxies) |
79 | 76 | print(re.json()) | ... | ... |
commons/basic/registerRecord_save.py
... | ... | @@ -60,8 +60,50 @@ class registerRecord_save(): |
60 | 60 | "registerFeeDtoList": [], |
61 | 61 | "tradePassword": "" } |
62 | 62 | |
63 | + self.body1 = { | |
64 | + "accountId": 107792, | |
65 | + "cardNo": "888810026785", | |
66 | + "customerId": 141992, | |
67 | + "customerCode": "00131694", | |
68 | + "customerName": "特朗普vip", | |
69 | + "fixedphoneNumber": None, | |
70 | + "mobilephoneNumber": "16111111112", | |
71 | + "identityCardAddress": "", | |
72 | + "identityCardNo": "110101198001012390", | |
73 | + "identityCardType": "ID", | |
74 | + "registerDetailDtoList": [{ | |
75 | + "id": 0, | |
76 | + "areaId": 274, | |
77 | + "areaName": "东区01", | |
78 | + "quantity": 10, | |
79 | + "productId": 374690, | |
80 | + "registerRecordId": 0, | |
81 | + "remark": None, | |
82 | + "weight": 10, | |
83 | + "weightType": 0, | |
84 | + "created": None, | |
85 | + "createdById": 0, | |
86 | + "createdByName": None, | |
87 | + "createdByDepartmentId": 0, | |
88 | + "createdByDepartmentName": None, | |
89 | + "registerCertificateList": None, | |
90 | + "product": None, | |
91 | + "registerCertificateDtoList": None, | |
92 | + "productDto": { | |
93 | + "id": 0, | |
94 | + "originId": 510100, | |
95 | + "originName": "成都市", | |
96 | + "pieceWeight": 1, | |
97 | + "categoryId": 374690, | |
98 | + "categoryCode": "374690", | |
99 | + "categoryName": "苹果", | |
100 | + "created": None | |
101 | + } | |
102 | + }], | |
103 | + "registerFeeDtoList": [], | |
104 | + "tradePassword": "" } | |
105 | + | |
63 | 106 | |
64 | - | |
65 | 107 | |
66 | 108 | tt=registerRecord_save() |
67 | 109 | re=hg.post(url=tt.url,headers=tt.header,json=tt.body,proxies=hg.myproxies) | ... | ... |