Commit 0a5e141aad632f8ab277b33a4c486513eb3010b2

Authored by wenleiming
1 parent 1db2d8ff

创建返还人

commons/api/feedback_order_settlement.py
... ... @@ -6,10 +6,11 @@
6 6 @IDE :PyCharm
7 7 """
8 8 from commons import common as com
  9 +from commons.MySession import my
  10 +import requests
9 11  
10   -class fc_add():
  12 +class feedback_order_settlement():
11 13 url = "http://test.jmsf.diligrp.com:8385/FeedbackCustomerController/add.action"
12   -
13 14 header = {
14 15 "Host": "test.jmsf.diligrp.com:8385", "Connection": "keep-alive", "Content-Length": "95",
15 16 "Accept": "application/json,text/javascript,*/*;q=0.01", "Origin": "http://test.jmsf.diligrp.com:8385",
... ... @@ -18,7 +19,17 @@ class fc_add():
18 19 "Content-Type": "application/x-www-form-urlencoded;charset=UTF-8", "Accept-Language": "zh-CN,zh;q=0.9",
19 20 "Referer": "http://test.jmsf.diligrp.com:8385/FeedbackCustomerController/list",
20 21 "Accept-Encoding": "gzip,deflate",
21   - "Cookie": "UAP_accessToken=eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJhdWQiOiJXRUIiLCJuYmYiOjE2Mjc1MjY2ODMsImRhdGEiOiJ7XCJjZWxscGhvbmVcIjpcIjE1NTI2MzY0NDU2XCIsXCJjcmVhdGVkXCI6MTYwODc5NTk0OTAwMCxcImRlcGFydG1lbnRJZFwiOjU2LFwiZW1haWxcIjpcInNoZW55YW5nQGRpbGlncnAuY29tXCIsXCJmaXJtQ29kZVwiOlwic3lcIixcImZpcm1JZFwiOjksXCJmaXJtTmFtZVwiOlwi5rKI6Ziz5Zyw5Yip5Yac5om55biC5Zy65a6i5oi355S15a2Q57uT566X5Lit5b-DXCIsXCJpZFwiOjI1MSxcImxhc3RMb2dpblRpbWVcIjoxNjI3NTI2NjgzMjM3LFwibWV0YWRhdGFcIjp7fSxcIm1vZGlmaWVkXCI6MTYyNjE2MzAwNDAwMCxcInBhc3N3b3JkXCI6XCIxODk2NUVCNzJDOTJBNTQ5RERcIixcIn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W1lXCI6XCLmsojpmLNcIixcInNlcmlhbE51bWJlclwiOlwiMDAwXCIsXCJzdGF0ZVwiOjEsXCJzeXN0ZW1UeXBlXCI6MSxcInVzZXJOYW1lXCI6XCI0NDQ0NDRcIixcInVzZXJUeXBlXCI6MX0iLCJpc3MiOiJVQVBfQVVUSDAiLCJleHAiOjE2Mjc4NjczNzgsImlhdCI6MTYyNzg2NTU3OCwianRpIjoiMTBhOTY2ZmEtYTAzYS00YTFiLTliYmMtNDIzMTRhN2Y2ZGVmIn0.LnIkAnxYqN75lotTXyIyNn6Mu7qvu4eOqeEhuXcoeWGpJ5_vTYDbOt7VY9EbvN_dNVdaW1LD0Fp0hDWNLu9mUi-RytYo-WgvSM-BBuzCnp9r9CschtW0lmzQhYtvp1GF5FC0FMw1LQB0WVeQjKW8hShwQgD8DqYh_1EWXDgJ3VE; UAP_refreshToken=0e205e78-a656-4a85-a2ba-7226ce898ae5; UAP_firmId=9"
23 23 }
24   - body = "id=25&cardNo=888810057654&settleAmount=2&ids=12047&feedbackCustomerId=25&feedbackCustomerName=验证员工推送到CRM&billIds=3674&settledAmounts=2"
25 24 \ No newline at end of file
  25 + body = "id=25&cardNo=888810057654&settleAmount=2&ids=12034&feedbackCustomerId=25&feedbackCustomerName=%E9%AA%8C%E8%AF%81%E5%91%98%E5%B7%A5%E6%8E%A8%E9%80%81%E5%88%B0CRM&billIds=3621&settledAmounts=2"
  26 +
  27 + def __init__(self):
  28 + self.url = feedback_order_settlement.url.replace("http://test.",com.get_global_config("global_data", "environment", "en") )
  29 + self.header = feedback_order_settlement.header
  30 + self.body = feedback_order_settlement.body
  31 +
  32 +# fe=feedback_order_settlement()
  33 +# print(fe.body)
  34 +# re=my.post(url=fe.url,headers=fe.header,data=fe.body)
  35 +# print(re.json())
  36 +# print(re.headers)
26 37 \ No newline at end of file
... ...
config/marketConfig/test_config_hg.conf
1 1 #沈阳市场信息
2 2 [loginInfo]
3   -userName=scgy
4   -password=123123
  3 +userName=444444
  4 +password=111111
  5 +; userName=scgy
  6 +; password=123123
5 7  
6 8 [testInfo]
7 9 #已添加的身份证号
... ...