-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbasic.yml
More file actions
53 lines (53 loc) · 1.45 KB
/
basic.yml
File metadata and controls
53 lines (53 loc) · 1.45 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
- api:
def: loginback($backlogin, $backpwd)
request:
url: /wsy_blockchain/admin/index.php
method: POST
headers:
Content-Type: application/x-www-form-urlencoded; charset=UTF-8
X-Requested-With: XMLHttpRequest
data:
account: $backlogin
admin_login_code: '1'
password: $backpwd
params:
a: do_login
m: login
validate:
- eq: ["status_code", 200]
- eq: ["content.errmsg", 登录成功!]
- api:
def: loginweb($user, $password)
request:
url: /wsy_blockchain/web/index.php
headers:
Content-Type: application/json;charset=UTF-8
method: POST
params:
a: login
m: user
json:
account: '$user'
lang_id: '1'
password: $password
type: 1
validate:
- eq: ["status_code", 200]
- eq: ["content.errmsg", 登录成功]
- api:
def: sendCheckCode($user, $num)
request:
url: /wsy_blockchain/web/index.php
headers:
Content-Type: application/json;charset=UTF-8
method: POST
params:
a: sendCheckCode
m: function
json:
mobile: '$user'
mobile_area_code: '86'
business: $num
validate:
- eq: ["status_code", 200]
- eq: ["content.errmsg", 短信发送成功]