fc_view.py 1.18 KB
# -*- coding: utf-8 -*-
"""
@Time : 2021/7/30 9:55
@Auth : wlm
@File :test_fc_view.py
@IDE :PyCharm
"""
# -*- coding: utf-8 -*-
"""
返还人管理——查看返还人
"""
from commons import common as com
from commons.MySession import my

class fc_view():
    url = "http://test.jmsf.diligrp.com:8385/FeedbackCustomerController/view.html?pagetype=2&id=40"

    header = {
        "Host":"test.jmsf.diligrp.com:8385",
        "Connection":"keep-alive",
        "Upgrade-Insecure-Requests":"1",
        "User-Agent":"Mozilla/5.0(WindowsNT6.2;WOW64)AppleWebKit/537.36(KHTML,likeGecko)Chrome/84.0.4147.105Safari/537.36",
        "Accept":"text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9",
        "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 = fc_view.url.replace("http://test.",com.get_global_config("global_data", "environment", "en") )
        self.header = fc_view.header

# fc = fc_view()
# re = my.get(url=fc.url,headers = fc.header)
# print(re.text)