Commit d2e4b51b8908eb509cc0e6ac37804ff4f0e1d09d
1 parent
378243f1
创建返还人buchong
Showing
2 changed files
with
5 additions
and
2 deletions
commons/api/fc_add.py
... | ... | @@ -21,7 +21,8 @@ class fc_add(): |
21 | 21 | "Accept-Encoding": "gzip,deflate", |
22 | 22 | "Cookie": "UAP_accessToken=eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJhdWQiOiJXRUIiLCJuYmYiOjE2Mjc4NjU1NzgsImRhdGEiOiJ7XCJjZWxscGhvbmVcIjpcIjE1NTI2MzY0NDU2XCIsXCJjcmVhdGVkXCI6MTYwODc5NTk0OTAwMCxcImRlcGFydG1lbnRJZFwiOjU2LFwiZW1haWxcIjpcInNoZW55YW5nQGRpbGlncnAuY29tXCIsXCJmaXJtQ29kZVwiOlwic3lcIixcImZpcm1JZFwiOjksXCJmaXJtTmFtZVwiOlwi5rKI6Ziz5Zyw5Yip5Yac5om55biC5Zy65a6i5oi355S15a2Q57uT566X5Lit5b-DXCIsXCJpZFwiOjI1MSxcImxhc3RMb2dpblRpbWVcIjoxNjI3ODY1NTc3OTg5LFwibWV0YWRhdGFcIjp7fSxcIm1vZGlmaWVkXCI6MTYyNjE2MzAwNDAwMCxcInBhc3N3b3JkXCI6XCIxODk2NUVCNzJDOTJBNTQ5RERcIixcInJlYWxOYW1lXCI6XCLmsojpmLNcIixcInNlcmlhbE51bWJlclwiOlwiMDAwXCIsXCJzdGF0ZVwiOjEsXCJzeXN0ZW1UeXBlXCI6MSxcInVzZXJOYW1lXCI6XCI0NDQ0NDRcIixcInVzZXJUeXBlXCI6MX0iLCJpc3MiOiJVQVBfQVVUSDAiLCJleHAiOjE2Mjc4NjczNzgsImlhdCI6MTYyNzg2NTU3OCwianRpIjoiMTBhOTY2ZmEtYTAzYS00YTFiLTliYmMtNDIzMTRhN2Y2ZGVmIn0.LnIkAnxYqN75lotTXyIyNn6Mu7qvu4eOqeEhuXcoeWGpJ5_vTYDbOt7VY9EbvN_dNVdaW1LD0Fp0hDWNLu9mUi-RytYo-WgvSM-BBuzCnp9r9CschtW0lmzQhYtvp1GF5FC0FMw1LQB0WVeQjKW8hShwQgD8DqYh_1EWXDgJ3VE; UAP_refreshToken=0e205e78-a656-4a85-a2ba-7226ce898ae5; UAP_firmId=9" |
23 | 23 | } |
24 | - body = 'parentId=0&name=框架&mobile=18828273365&cardNumber=888800022857' | |
24 | + # body = 'parentId=0&name=框架&mobile=18828273365&cardNumber=888800022857' | |
25 | + body = "parentId=0&name=你好&mobile=18828281176&cardNumber=888810054630&relationCardTemp=888810054630&relationalCard[0].cardNumber=888810054630" | |
25 | 26 | def __init__(self): |
26 | 27 | self.url = fc_add.url.replace("http://test.",com.get_global_config("global_data", "environment", "en") ) |
27 | 28 | self.header = fc_add.header | ... | ... |
testcase/fc_add.py
... | ... | @@ -14,7 +14,9 @@ class test_fc_add(unittest.TestCase): |
14 | 14 | |
15 | 15 | def test_fc_add_01(self): |
16 | 16 | |
17 | - body = fc.body.replace("888800022857","888810054630").replace("框架","那就").replace("18828273365","18828376651") | |
17 | + body = fc.body.replace("888810054630","888810054630").replace("你好","克萨斯").replace("relation\ | |
18 | + CardTemp=888810054630","relationCardTemp=888810054630").replace("relationalCard[0].cardNumber=888\ | |
19 | + 810054630","relationalCard[0].cardNumber=888810054630") | |
18 | 20 | print(body) |
19 | 21 | re = my.post(url=fc.url, headers=fc.header, data=body.encode('utf-8')) |
20 | 22 | print(re.headers) | ... | ... |