简要描述:

结算统计页面

请求域名:

  • http://xx.com

请求路由:

route=plugin.unicom-server-station.frontend.settlement.index

请求 参数::

参数名 是否必须 类型 说明
type string settled = 已结算; unsettled = 未结算;全部不用传此参数

返回示例:

正确时返回:

{
  "result": 1,
  "msg": "ok",
  "data": {
    "plugin_name": "服务站11",
    "member": {
      "uid": 11,
      "nickname": "12345678009",
      "avatar": "http://localhost/static/images/photo-mr.jpg",
      "avatar_image": "http://localhost/static/images/photo-mr.jpg",
      "username": "12345678009"
    },
    "settled": "20.00",
    "unsettled": "0",
    "settlements": {
      "current_page": 1,
      "data": [
        {
          "id": 1,
          "order_sn": "SN2304242200D25482",
          "created_at": "2023-04-24 22:00:13",
          "amount": "20.00",
          "status": 1,
          "status_name": "已结算"
        }
      ],
      "first_page_url": "http://localhost/addons/yun_shop/api.php?page=1",
      "from": 1,
      "last_page": 1,
      "last_page_url": "http://localhost/addons/yun_shop/api.php?page=1",
      "next_page_url": null,
      "path": "http://localhost/addons/yun_shop/api.php",
      "per_page": 15,
      "prev_page_url": null,
      "to": 1,
      "total": 1
    }
  }
}



返回参数说明:

参数名 类型 说明
data.plugin_name string 插件自定义名称
data.member array 会员信息
data.settled string 已结算金额
data.unsettled string 未结算金额
data.settlements array 结算记录