feedback_customer_disable.py 2.24 KB
# -*- coding: utf-8 -*-
"""
@Time : 2021/7/30 9:56
@Auth : wlm
@File :feedback_customer_disable.py
@IDE :PyCharm
"""
from commons import common as com
from commons.MySession import my

class feedback_customer_disable():
    url = "http://test.jmsf.diligrp.com:8385/FeedbackCustomerController/disable.action?id=44"

    header = {
         "Host": "test.jmsf.diligrp.com:8385", "Connection": "keep-alive", "Content-Length": "0",
         "Accept": "application/json,text/javascript,*/*;q=0.01", "Origin": "http://test.jmsf.diligrp.com:8385",
         "X-Requested-With": "XMLHttpRequest",
         "User-Agent": "Mozilla/5.0(WindowsNT6.2;WOW64)AppleWebKit/537.36(KHTML,likeGecko)Chrome/84.0.4147.105Safari/537.36",
         "Accept-Language": "zh-CN,zh;q=0.9",
         "Referer": "http://test.jmsf.diligrp.com:8385/FeedbackCustomerController/list",
         "Accept-Encoding": "gzip,deflate",
         "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"

    }
    def __init__(self):
        self.url = feedback_customer_disable.url.replace("http://test.", com.get_global_config("global_data", "environment", "en"))
        self.header = feedback_customer_disable.header

fcd = feedback_customer_disable()
re = my.post(url=fcd.url, headers=fcd.header)
print(re.json())