feedbackOrderController_querySumAmount.py 1.64 KB
# -*- coding: utf-8 -*-
"""
@Time : 2021/8/5 9:33
@Auth : wlm
@File :feedbackOrderController_querySumAmount.py
@IDE :PyCharm
"""
"""
已结账明细——返还人和结账时间查询
"""
from commons import common as com
from commons.MySession import my,sy1

class querySumAmount():
    url = "http://test.jmsf.diligrp.com:8385/FeedbackOrderController/querySumAmount.action"

    header = {
         "Host": "test.jmsf.diligrp.com:8385", "Connection": "keep-alive", "Content-Length": "165",
         "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",
         "Content-Type": "application/x-www-form-urlencoded;charset=UTF-8", "Accept-Language": "zh-CN,zh;q=0.9",
         "Referer": "http://test.jmsf.diligrp.com:8385/FeedbackOrderController/settlementlist",
         "Accept-Encoding": "gzip,deflate"
    }

    # body = "feedbackCustomerId=25&departmentId=56&tagId=yjsp&settleTimeStart=2021-08-02 00:00:00&settleTimeEnd=2021-08-05 23:59:59&queryType=1&keyword=苹果"
    body = "feedbackCustomerId=25&settleTimeStart=2021-07-05 00:00:00&settleTimeEnd=2021-08-05 09:46:25&queryType=1"
    def __init__(self):
        self.url = querySumAmount.url.replace("http://test.",com.get_global_config("global_data", "environment", "en"))
        self.header = querySumAmount.header
        self.body = querySumAmount.body

# qsm = querySumAmount()
# re = sy1.post(url = qsm.url,data = qsm.body.encode('utf-8'),headers = qsm.header)
# print(re.json())