简要描述:

  • 领取收益广告页

请求域名:

  • http://test.yunzshop.com

请求URL:

GET/&route=finance.plugin-settle.income-receive

参数:

参数名 是否必须 类型 说明
plugin_type string 插件标识
id int 收益id

返回示例:

正确时返回:

{
    "result": 1, 
    "msg": "成功", 
    "data": {
        "status": 1, 
        "adv_thumb": "http://localhost/attachment/images/6/2018/09/twzWx2xUCnG2CCwWwDCEcc2k2weE2C.jpg", 
        "adv_url": "https://www.baidu.com", 
        "type": "store", 
        "income_data": {
            "id": 6, 
            "order_sn": "SN20171205111810Gu", 
            "amount": "39.80", 
            "order": {
                "id": 676, 
                "uniacid": 6, 
                "uid": 2461, 
                "order_sn": "SN20171205111810Gu", 
                "price": "204.00", 
                "goods_price": "200.00", 
                "goods_total": 1, 
                "status": 3, 
                "create_time": "2017-12-05 11:18:10", 
                "is_deleted": 0, 
                "is_member_deleted": 0, 
                "finish_time": "2017-12-05 11:18:47", 
                "pay_time": "2017-12-05 11:18:30", 
                "send_time": "2017-12-05 11:18:37", 
                "cancel_time": "1970-01-01 08:00:00", 
                "created_at": 1512443890, 
                "updated_at": 1512443927, 
                "deleted_at": 0, 
                "cancel_pay_time": "1970-01-01 08:00:00", 
                "cancel_send_time": "1970-01-01 08:00:00", 
                "dispatch_type_id": 1, 
                "dispatch_price": "5.00", 
                "discount_price": "0.00", 
                "pay_type_id": 3, 
                "order_goods_price": "199.00", 
                "deduction_price": "0.00", 
                "refund_id": 0, 
                "is_plugin": 0, 
                "change_price": "0.00", 
                "change_dispatch_price": "0.00", 
                "comment_status": 0, 
                "order_pay_id": "1124", 
                "plugin_id": 32, 
                "is_virtual": 0, 
                "mark": "0", 
                "is_pending": 0, 
                "status_name": "交易完成", 
                "pay_type_name": "余额", 
                "has_one_pay_type": {
                    "id": 3, 
                    "name": "余额", 
                    "plugin_id": 0, 
                    "code": "balance", 
                    "type": 1, 
                    "unit": "元", 
                    "updated_at": "2017-09-19 09:48:07", 
                    "created_at": null, 
                    "deleted_at": null, 
                    "setting_key": "shop.pay.credit", 
                    "need_password": 1
                }
            }
        }
    }
}

错误时返回:

{
    "result": 0,
    "msg": "错误提示",
    "data": {}
}

参数说明:

参数名 类型 说明
adv_thumb string 广告图片地址
adv_url string 广告地址
income_data.amount int 收益金额

备注:

  • 更多返回错误代码请看首页的错误代码描述