服务器托管数据
方法概览
| 项目 | 内容 |
|---|---|
| 文档类型 | PHP 类方法 |
| 方法标识 | app\common\model\ServerHostingProductModel::webData |
| 所属业务 | 产品管理 |
| 来源模块/系统 | 模板控制器 |
功能说明
服务器托管数据
调用示例
$result = (new \app\common\model\ServerHostingProductModel())->webData();参数
该函数/方法无需传入参数。
返回值
| 返回项 | 类型 | 说明 |
|---|---|---|
list | array | 服务器托管产品配置 |
list[].id | int | 区域ID |
list[].name | string | 区域名称 |
list[].children | array | 商品 |
list[].children[].id | int | 商品ID |
list[].children[].area_id | int | 区域ID |
list[].children[].title | string | 标题 |
list[].children[].region | string | 地域 |
list[].children[].ip_num | array | IP数量 |
list[].children[].bandwidth | array | 带宽 |
list[].children[].defense | array | 防御 |
list[].children[].bandwidth_price | string | 带宽价格 |
list[].children[].bandwidth_price_unit | string | 带宽价格单位 |
list[].children[].selling_price | string | 售价 |
list[].children[].selling_price_unit | string | 售价单位 |
list[].children[].product_id | int | 关联商品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 | 调用失败时由具体实现抛出异常,异常信息以运行时结果为准。 |