feedbackAccounrecordController_list.py
3.06 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
# -*- coding: utf-8 -*-
"""
@Time : 2021/8/5 9:59
@Auth : wlm
@File :test_feedbackAccounrecordController_list.py
@IDE :PyCharm
"""
"""
交易明细——交易流水号和时间查询
"""
from commons import common as com
from commons.MySession import my,sy1
class feedbackAccounrecordController_list():
url = "http://test.jmsf.diligrp.com:8385/FeedbackAccounrecordController/list.action"
header = {
"Host": "test.jmsf.diligrp.com:8385", "Connection": "keep-alive", "Content-Length": "631",
"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", "Accept-Language": "zh-CN,zh;q=0.9",
"Referer": "http://test.jmsf.diligrp.com:8385/FeedbackAccounrecordController/list",
"Accept-Encoding": "gzip,deflate"
}
# body = '''rows=10&page=1&order=desc
# &metadata[created]={"provider":"datetimeProvider","index":10,"field":"created"}
# &metadata[recordType]={"provider":"recordTypeProvider","index":20,"field":"recordType"}
# &metadata[recordState]={"provider":"recordStateProvider","index":30,"field":"recordState"}
# &metadata[recordAmount]={"provider":"moneyProvider","index":40,"field":"recordAmount"}
# &createdStart=2021-08-05 00:00:00
# &createdEnd=2021-08-05 23:59:59
# &queryType=1
# &keyword=1075782308694007808'''
# body = '''rows=10&page=1&order=desc&metadata[created]={"provider":"datetimeProvider","index":10,"field":"created"}&metadata[recordType]={"provider":"recordTypeProvider","index":20,"field":"recordType"}&metadata[recordState]={"provider":"recordStateProvider","index":30,"field":"recordState"}&metadata[recordAmount]={"provider":"moneyProvider","index":40,"field":"recordAmount"}&createdStart=2021-08-05 00:00:00&createdEnd=2021-08-05 23:59:59&queryType=1&keyword=1075782308694007808'''
body = '''rows=10
&page=1&order=desc
&metadata[created]={"provider":"datetimeProvider","index":10,"field":"created"}
&metadata[recordType]={"provider":"recordTypeProvider","index":20,"field":"recordType"}
&metadata[recordState]={"provider":"recordStateProvider","index":30,"field":"recordState"}
&metadata[recordAmount]={"provider":"moneyProvider","index":40,"field":"recordAmount"}
&createdStart=2021-08-05 00:00:00
&createdEnd=2021-08-05 23:59:59
&queryType=1
&keyword=1075782308694007808'''
def __init__(self):
self.url = feedbackAccounrecordController_list.url.replace("http://test.",com.get_global_config("global_data", "environment", "en"))
self.header = feedbackAccounrecordController_list.header
self.body = feedbackAccounrecordController_list.body
# farc = feedbackAccounrecordController_list()
# print(farc.body)
# re = sy1.post(url = farc.url,headers = farc.header,data = farc.body.replace("\n", ""),proxies = my.myproxies)
# print(re.json())