Commit d7933247f89ebeb5ab92907a65346f0e742e69f2

Authored by liujiqiang
2 parents 2b289d16 f640deaf

Merge remote-tracking branch 'origin/master' into master

commons/api/feedback_customer_query.py
... ... @@ -45,6 +45,6 @@ class feedback_customer_query():
45 45 # feedback_customer_query = urllib.parse.urlencode(feedback_customer_query())
46 46  
47 47 # fcq = feedback_customer_query
48   -# # print(fcq.body)
  48 +# # # print(fcq.body)
49 49 # re = sy1.post(url = fcq.url, data = fcq.body.replace('\n',"").encode('utf-8'),headers = fcq.header,proxies = my.proxies)
50 50 # print(re.text)
51 51 \ No newline at end of file
... ...
testcase/FeedbackCustomerController/test_feedback_customer_query.py
... ... @@ -17,13 +17,15 @@ class test_feedback_customer_query(unittest.TestCase):
17 17 WHERE market_id = ''' + str(sy1.user["sy_user01"]["firmId"]) + ''' ORDER BY `id` DESC LIMIT 1''')[0]
18 18 def test_feedback_customer_query_01(self):
19 19 print(fcq.url)
20   - body = fcq.body.replace("潘婷婷", str(self.name1)).\
21   - replace("2021-07-02 00:00:00",(datetime.datetime.now() - datetime.timedelta(days = 30)).strftime("%Y-%m-%d %H:%M:%S")).\
22   - replace("2021-08-03 23:59:59",datetime.datetime.now().strftime("%Y-%m-%d %H:%M:%S"))
  20 + body = fcq.body\
  21 + .replace("潘婷婷", str(self.name1))\
  22 + .replace("2021-08-11 00:00:00",(datetime.datetime.now() - datetime.timedelta(days = 30)).strftime("%Y-%m-%d %H:%M:%S")).\
  23 + replace("2021-08-11 23:59:59",datetime.datetime.now().strftime("%Y-%m-%d %H:%M:%S"))
23 24 # print(body)
24   - re = sy1.post(url = fcq.url, data = body.replace("\n","").encode('utf-8'),headers = fcq.header,proxies = my.proxies)
  25 + re = sy1.post(url = fcq.url, data = body.replace("\n","").encode('utf-8'),headers = fcq.header)
25 26 # print(re.headers)
26 27 # print(re.text)
  28 + # print("士大夫十",str(self.name1))
27 29 self.assertTrue(str(self.name1) in str(re.text))
28 30  
29 31 @classmethod
... ...