appoint_task_accept_api.yml 2.6 KB
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