feedback_customer_disable.py 2.25 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_accessToken=eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJhdWQiOiJXRUIiLCJuYmYiOjE2Mjc5NTE5MzEsImRhdGEiOiJ7XCJjZWxscGhvbmVcIjpcIjE1NTI2MzY0NDU2XCIsXCJjcmVhdGVkXCI6MTYwODc5NTk0OTAwMCxcImRlcGFydG1lbnRJZFwiOjU2LFwiZW1haWxcIjpcInNoZW55YW5nQGRpbGlncnAuY29tXCIsXCJmaXJtQ29kZVwiOlwic3lcIixcImZpcm1JZFwiOjksXCJmaXJtTmFtZVwiOlwi5rKI6Ziz5Zyw5Yip5Yac5om55biC5Zy65a6i5oi355S15a2Q57uT566X5Lit5b-DXCIsXCJpZFwiOjI1MSxcImxhc3RMb2dpblRpbWVcIjoxNjI3OTUxOTMwOTY3LFwibWV0YWRhdGFcIjp7fSxcIm1vZGlmaWVkXCI6MTYyNjE2MzAwNDAwMCxcInBhc3N3b3JkXCI6XCIxODk2NUVCNzJDOTJBNTQ5RERcIixcInJlYWxOYW1lXCI6XCLmsojpmLNcIixcInNlcmlhbE51bWJlclwiOlwiMDAwXCIsXCJzdGF0ZVwiOjEsXCJzeXN0ZW1UeXBlXCI6MSxcInVzZXJOYW1lXCI6XCI0NDQ0NDRcIixcInVzZXJUeXBlXCI6MX0iLCJpc3MiOiJVQVBfQVVUSDAiLCJleHAiOjE2Mjc5NTM3MzEsImlhdCI6MTYyNzk1MTkzMSwianRpIjoiMGM1ZjljMjAtMjIyOC00YzllLTljYTQtMDA1OTMyYjg2YmVhIn0.V8ptydt5ueigxhWIZ8yWJpOr15xM1R5qjqRnkDLfaaRg4MerzIXf6z82f04hLLqlrJva4VC4DFzsVjkq_-V8RMvYOrGpdBCcDCHzp6X82IvhfJsUZ6yyrrKsCxXvi1FHHGMZhBe61z0K8r0yM56dl1Dyxujo5L7L-idWKWpbwkk;UAP_refreshToken=b019119d-600f-4f4c-92b7-c2a281b24e03;UAP_firmId=9"
    }

    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())