We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8258d3d commit 05f1486Copy full SHA for 05f1486
inter/LiftTicketInit.py
@@ -1,4 +1,5 @@
1
# coding=utf-8
2
+import re
3
4
5
class liftTicketInit:
@@ -11,7 +12,13 @@ def reqLiftTicketInit(self):
11
12
:return:
13
"""
14
urls = self.session.urls["left_ticket_init"]
- self.session.httpClint.send(urls)
15
+ # 获取初始化的结果
16
+ result = self.session.httpClint.send(urls)
17
+ # 用正则表达式查出CLeftTicketUrl的值
18
+ matchObj = re.search('var CLeftTicketUrl = \'(.*)\'', result, re.M|re.I);
19
+ if matchObj:
20
+ # 如果有值,替换queryUrl
21
+ self.session.queryUrl = matchObj.group(1)
22
return {
23
"status": True
- }
24
+ }
0 commit comments