orders002.api.yml 1.3 KB
name: 未收明细——分红订单
base_url: ${ENV(base_url)}
variables:
    currtime: ${make_time()}
    uuid: ${make_uuid()}
    var_access_token: ${get_accesstoken()}
    sign: ${make_sign($currtime, $uuid, $var_access_token)}
    order_code: ${get_detailAction_0_order_code_from_database()}
    plan_order_amount: ${get_detailAction_0_plan_order_amount_from_database()}
    use_partner_bonus: ${get_detailAction_0_use_partner_bonus_amount_from_database()}
    endTime: ${get_Decembe_timestamp()}
    msg: 成功
request:
    headers:
        Content-Type: application/json;charset=utf-8
        User-Agent: okhttp/3.12.3
        X-MMM-AccessToken: $var_access_token
        X-MMM-AppName: com.mmm.ability
        X-MMM-AppProject: ability
        X-MMM-DeviceType: '1'
        X-MMM-Sign: $sign
        X-MMM-Timestamp: $currtime
        X-MMM-Uuid: $uuid
        X-MMM-Version: 0.4.0
    json:
        detailAction: 1
        pageIndex: 0
        pageSize: 20
        startTime: 0
        endTime: $endTime
    method: POST
    url: v1/dividend/orders
validate:
    -   eq:
        - content.msg
        - $msg
    -   eq:
        - content.data.list.0.deliveryNo
        - $order_code
    -   eq:
        - content.data.list.0.orderAmount
        - $plan_order_amount
    -   eq:
        - content.data.list.0.dividendReceivable
        - $use_partner_bonus