Commit cf70498e7f50818b2ed79a2cad41b407ea2e533e
1 parent
216c93bc
禁用
Showing
1 changed file
with
24 additions
and
0 deletions
commons/api/feedback_customer_disable.py
... | ... | @@ -5,3 +5,27 @@ |
5 | 5 | @File :feedback_customer_disable.py |
6 | 6 | @IDE :PyCharm |
7 | 7 | """ |
8 | +from commons import common as com | |
9 | +from commons.MySession import my | |
10 | + | |
11 | +class feedback_customer_disable(): | |
12 | + url = "http://test.jmsf.diligrp.com:8385/FeedbackCustomerController/disable.action?id=44" | |
13 | + | |
14 | + header = { | |
15 | + "Host": "test.jmsf.diligrp.com:8385", "Connection": "keep-alive", "Content-Length": "0", | |
16 | + "Accept": "application/json,text/javascript,*/*;q=0.01", "Origin": "http://test.jmsf.diligrp.com:8385", | |
17 | + "X-Requested-With": "XMLHttpRequest", | |
18 | + "User-Agent": "Mozilla/5.0(WindowsNT6.2;WOW64)AppleWebKit/537.36(KHTML,likeGecko)Chrome/84.0.4147.105Safari/537.36", | |
19 | + "Accept-Language": "zh-CN,zh;q=0.9", | |
20 | + "Referer": "http://test.jmsf.diligrp.com:8385/FeedbackCustomerController/list", | |
21 | + "Accept-Encoding": "gzip,deflate", | |
22 | + "Cookie": "UAP_refreshToken=0e205e78-a656-4a85-a2ba-7226ce898ae5;UAP_firmId=9;UAP_accessToken=eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJhdWQiOiJXRUIiLCJuYmYiOjE2Mjc4OTI3MzYsImRhdGEiOiJ7XCJjZWxscGhvbmVcIjpcIjE1NTI2MzY0NDU2XCIsXCJjcmVhdGVkXCI6MTYwODc5NTk0OTAwMCxcImRlcGFydG1lbnRJZFwiOjU2LFwiZW1haWxcIjpcInNoZW55YW5nQGRpbGlncnAuY29tXCIsXCJmaXJtQ29kZVwiOlwic3lcIixcImZpcm1JZFwiOjksXCJmaXJtTmFtZVwiOlwi5rKI6Ziz5Zyw5Yip5Yac5om55biC5Zy65a6i5oi355S15a2Q57uT566X5Lit5b-DXCIsXCJpZFwiOjI1MSxcImxhc3RMb2dpblRpbWVcIjoxNjI3ODY1NTc3OTg5LFwibWV0YWRhdGFcIjp7fSxcIm1vZGlmaWVkXCI6MTYyNjE2MzAwNDAwMCxcInBhc3N3b3JkXCI6XCIxODk2NUVCNzJDOTJBNTQ5RERcIixcInJlYWxOYW1lXCI6XCLmsojpmLNcIixcInNlcmlhbE51bWJlclwiOlwiMDAwXCIsXCJzdGF0ZVwiOjEsXCJzeXN0ZW1UeXBlXCI6MSxcInVzZXJOYW1lXCI6XCI0NDQ0NDRcIn0iLCJpc3MiOiJVQVBfQVVUSDAiLCJleHAiOjE2Mjc4OTQ1MzYsImlhdCI6MTYyNzg5MjczNiwianRpIjoiNDYzMTY0MTUtYmUzYy00NTkzLWI3ODctYjRhZmI3MDQ1ODFiIn0.N5kEGcM9CR09wc3G7fLE0TwkdvO-hM3HQPKEFDUmdmewk-7iHlbzMHuRiY-Z_hPBbhv1v9y8Ibvyh6T6gikkt7C0movQ-oCqdNY-hzOrBZk9Ht-6mbf69zZKHOJv0TXcSs3y265eVviVbgZG6TgrptXWdSBvSt_Q94sfbMsQ7SA" | |
23 | + | |
24 | + } | |
25 | + def __init__(self): | |
26 | + self.url = feedback_customer_disable.url.replace("http://test.", com.get_global_config("global_data", "environment", "en")) | |
27 | + self.header = feedback_customer_disable.header | |
28 | + | |
29 | +fcd = feedback_customer_disable() | |
30 | +re = my.post(url=fcd.url, headers=fcd.header) | |
31 | +print(re.json()) | |
8 | 32 | \ No newline at end of file | ... | ... |