作者 dengyuting

还原1

@@ -17,4 +17,3 @@ validate: @@ -17,4 +17,3 @@ validate:
17 - eq: 17 - eq:
18 - content.msg 18 - content.msg
19 - ok 19 - ok
20 -  
@@ -29,4 +29,3 @@ validate: @@ -29,4 +29,3 @@ validate:
29 - eq: 29 - eq:
30 - content.msg 30 - content.msg
31 - ok 31 - ok
32 -  
@@ -21,4 +21,3 @@ validate: @@ -21,4 +21,3 @@ validate:
21 - eq: 21 - eq:
22 - content.msg 22 - content.msg
23 - ok 23 - ok
24 -  
1 -name: 登录公司  
2 -base_url: ${ENV(base_business_url)}  
3 -verify: False  
4 -teardown_hooks:  
5 - - ${teardown_hook_get_access_token($response)}  
6 -request:  
7 - headers:  
8 - Content-Type: application/json; charset=UTF-8  
9 - Authorization: Bearer ${get_Authorization()}  
10 - Origin: https://enterprise-platform-dev.fjmaimaimai.com  
11 - Referer: https://enterprise-platform-dev.fjmaimaimai.com/  
12 - User-Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/73.0.3683.75 Safari/537.36  
13 - X-Requested-With: XMLHttpRequest  
14 - json:  
15 - companyId: $companyId  
16 - method: POST  
17 - url: auth/anonymousLogin  
18 -validate:  
19 -- eq:  
20 - - content.code  
21 - - 0  
22 -- eq:  
23 - - content.msg  
24 - - ok  
1 -name: 登录列表  
2 -base_url: ${ENV(base_business_url)}  
3 -verify: False  
4 -teardown_hooks:  
5 - - ${teardown_hook_get_login_code($response)}  
6 -request:  
7 - headers:  
8 - Content-Type: application/json; charset=UTF-8  
9 - Authorization: Bearer ${get_access_token()}  
10 - Origin: https://enterprise-platform-dev.fjmaimaimai.com  
11 - Referer: https://enterprise-platform-dev.fjmaimaimai.com/  
12 - User-Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/73.0.3683.75 Safari/537.36  
13 - X-Requested-With: XMLHttpRequest  
14 - json:  
15 - method: POST  
16 - url: auth/getSingleLoginMenus  
17 -validate:  
18 -- eq:  
19 - - content.code  
20 - - 0  
21 -- eq:  
22 - - content.msg  
23 - - ok  
1 -name: 登录价值系统  
2 -base_url: ${ENV(base_worth_url)}  
3 -verify: False  
4 -variables:  
5 - msg: ok  
6 -teardown_hooks:  
7 - - ${teardown_hook_get_task_Authorization($response)}  
8 -  
9 -request:  
10 - headers:  
11 -# Authorization: Bearer ${get_access_token()}  
12 - Content-Type: application/json; charset=UTF-8  
13 - Origin: https://enterprise-platform-dev.fjmaimaimai.com  
14 - Referer: https://enterprise-platform-dev.fjmaimaimai.com/  
15 - User-Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/73.0.3683.75 Safari/537.36  
16 - X-Requested-With: XMLHttpRequest  
17 - json:  
18 - code: ${get_login_code()}  
19 - method: POST  
20 - url: auth/login  
21 -validate:  
22 -- eq:  
23 - - content.msg  
24 - - $msg  
1 -name: 企业平台账号登录  
2 -base_url: ${ENV(base_business_url)}  
3 -verify: False  
4 -variables:  
5 -# username: ${ENV(wpftwphone)}  
6 - password: 7c4a8d09ca3762af61e59520943dc26494f8941b  
7 -teardown_hooks:  
8 - - ${teardown_hook_get_Authorization($response)}  
9 -  
10 -request:  
11 - headers:  
12 - Content-Type: application/json; charset=UTF-8  
13 - Origin: https://enterprise-platform-dev.fjmaimaimai.com  
14 - Referer: https://enterprise-platform-dev.fjmaimaimai.com/  
15 - User-Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/73.0.3683.75 Safari/537.36  
16 - X-Requested-With: XMLHttpRequest  
17 - json:  
18 - password: $password  
19 - username: $username  
20 - method: POST  
21 - url: auth/pwdLogin  
22 -validate:  
23 -- eq:  
24 - - content.msg  
25 - - ok  
1 -name: 用户的公司列表  
2 -base_url: ${ENV(base_business_url)}  
3 -verify: False  
4 -  
5 -request:  
6 - headers:  
7 - Content-Type: application/json; charset=UTF-8  
8 - Authorization: Bearer ${get_Authorization()}  
9 - Origin: https://enterprise-platform-dev.fjmaimaimai.com  
10 - Referer: https://enterprise-platform-dev.fjmaimaimai.com/  
11 - User-Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/73.0.3683.75 Safari/537.36  
12 - X-Requested-With: XMLHttpRequest  
13 - json:  
14 - method: POST  
15 - url: companies/userCompamies  
16 -validate:  
17 -- eq:  
18 - - content.code  
19 - - 0  
20 -- eq:  
21 - - content.msg  
22 - - ok  
23 -  
1 -name: 企业平台单点登录,账号登录 1 +name: 企业平台单点登录, 账号登录:/auth/login
2 base_url: ${ENV(base_manager_url)} 2 base_url: ${ENV(base_manager_url)}
3 variables: 3 variables:
4 secret: ${get_secret($url)} 4 secret: ${get_secret($url)}
@@ -33,7 +33,7 @@ def get_nowtime(): @@ -33,7 +33,7 @@ def get_nowtime():
33 33
34 def get_today(): 34 def get_today():
35 now_today = datetime.datetime.now() 35 now_today = datetime.datetime.now()
36 - str_time = now_today.strftime("%Y-%m-%d ") 36 + str_time = now_today.strftime("%Y-%m-%d")
37 return str_time 37 return str_time
38 38
39 def get_tomorrow(): 39 def get_tomorrow():