物理服务器优惠列表
方法概览
| 项目 | 内容 |
|---|---|
| 文档类型 | PHP 类方法 |
| 方法标识 | app\common\model\PhysicalServerDiscountModel::discountList |
| 所属业务 | 商品管理 |
| 来源模块/系统 | 模板控制器 |
功能说明
物理服务器优惠列表
调用示例
$result = (new \app\common\model\PhysicalServerDiscountModel())->discountList();参数
该函数/方法无需传入参数。
返回值
| 返回项 | 类型 | 说明 |
|---|---|---|
list | array | 优惠 |
list[].id | int | 优惠ID |
list[].title | string | 标题 |
list[].description | string | 描述 |
list[].url | string | 跳转链接 |
正常返回
{
"list": [
{
"id": 1,
"title": "示例名称",
"description": "192.0.2.1",
"url": "https://example.com/callback"
}
]
}异常情况
| 异常类型 | 说明 |
|---|---|
Throwable | 调用失败时由具体实现抛出异常,异常信息以运行时结果为准。 |