feedback_customer_disable.py 1.19 KB
# -*- coding: utf-8 -*-
"""
@Time : 2021/7/30 9:56
@Auth : wlm
@File :test_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"
    }

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