智简魔方文档

服务器托管数据

方法概览

项目内容
文档类型PHP 类方法
方法标识app\common\model\ServerHostingProductModel::webData
所属业务产品管理
来源模块/系统模板控制器

功能说明

服务器托管数据

调用示例

$result = (new \app\common\model\ServerHostingProductModel())->webData();

参数

该函数/方法无需传入参数。

返回值

返回项类型说明
listarray服务器托管产品配置
list[].idint区域ID
list[].namestring区域名称
list[].childrenarray商品
list[].children[].idint商品ID
list[].children[].area_idint区域ID
list[].children[].titlestring标题
list[].children[].regionstring地域
list[].children[].ip_numarrayIP数量
list[].children[].bandwidtharray带宽
list[].children[].defensearray防御
list[].children[].bandwidth_pricestring带宽价格
list[].children[].bandwidth_price_unitstring带宽价格单位
list[].children[].selling_pricestring售价
list[].children[].selling_price_unitstring售价单位
list[].children[].product_idint关联商品ID

正常返回

{
  "list": [
    {
      "id": 1,
      "name": "示例名称",
      "children": [
        {
          "id": 1,
          "area_id": 1,
          "title": "示例名称",
          "region": "string",
          "ip_num": [
            "192.0.2.1"
          ],
          "bandwidth": [
            1
          ],
          "defense": [
            "string"
          ],
          "bandwidth_price": "string",
          "bandwidth_price_unit": "string",
          "selling_price": "string",
          "selling_price_unit": "string",
          "product_id": 1
        }
      ]
    }
  ]
}

异常情况

异常类型说明
Throwable调用失败时由具体实现抛出异常,异常信息以运行时结果为准。