appoint_task_accept_api.yml
2.6 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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
name: 指派任务验收
base_url: ${ENV(base_worth_url)}
verify: False
variables:
taskId: ${get_appoint_task_id()}
remark: 上传报告${get_nowtime()}
realityTime: ${get_today1()}
uid0: ${get_uid0()}
uid1: ${get_uid1()}
uid2: ${get_uid2()}
uid15: ${get_uid15()}
msg: ok
request:
headers:
Content-Type: application/json; charset=UTF-8
Authorization: Bearer ${get_task_Authorization()}
Origin: https://value-test.fjmaimaimai.com
Host: suplus-worth-web-gateway-test.fjmaimaimai.com
Referer: https://value-test.fjmaimaimai.com/
User-Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.88 Safari/537.36
X-Requested-With: XMLHttpRequest
json:
receiver:
uid: $uid0
name: $name0
percent: 25
reward: 500
participant:
- uid: $uid15
name: $name15
percent: ${convert_to_number(25)}
reward: ${convert_to_number(500)}
- uid: $uid1
name: $name1
percent: ${convert_to_number(25)}
reward: ${convert_to_number(500)}
- uid: $uid2
name: $name2
percent: ${convert_to_number(25)}
reward: ${convert_to_number(500)}
resourceType: 1
resourceList:
- id: ${get_resource_id()}
solution:
total: ${convert_to_number(20)}
receiver:
uid: $uid0
name: $name0
percent: ${convert_to_number(25)}
score: ${convert_to_number(5)}
participant:
- uid: $uid15
name: $name15
percent: ${convert_to_number(25)}
score: ${convert_to_number(5)}
- uid: $uid1
name: $name1
percent: ${convert_to_number(25)}
score: ${convert_to_number(5)}
- uid: $uid2
name: $name2
percent: ${convert_to_number(25)}
score: ${convert_to_number(5)}
remark: $remark
pictures:
realityTime: $realityTime
taskId: $taskId
method: POST
url: task/appoint/accept
validate:
- eq:
- content.code
- 0
- eq:
- content.msg
- $msg