feedback_customer_enable.py 1.2 KB
# -*- coding: utf-8 -*-
"""
@Time : 2021/8/3 8:56
@Auth : wlm
@File :test_feedback_customer_enable.py
@IDE :PyCharm
"""
"""
返还人管理——启用返还人
"""
from commons import common as com

class feedback_customer_enable():
    url = "http://test.jmsf.diligrp.com:8385/FeedbackCustomerController/enable.action?id=49"

    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_enable.url.replace("http://test.", com.get_global_config("global_data", "environment", "en"))
        self.header = feedback_customer_enable.header

# fce = feedback_customer_enable()
# re = my.post(url=fce.url, headers=fce.header)
# print(re.json())