| 项目 | 内容 |
|---|
| 文档类型 | PHP 类方法 |
| 方法标识 | app\admin\model\PluginModel::pluginList |
| 所属业务 | 财务管理 |
| 来源模块/系统 | 插件模型 |
获取支付/短信/邮件/插件列表:module=gateway表示支付接口列表,addon插件列表,sms短信接口列表,mail邮件接口列表,oss对象存储接口列表,invoice发票接口列表
$param = 'string';
$result = (new \app\admin\model\PluginModel())->pluginList($param);
| 参数 | 类型 | 必填 | 默认值 | 校验规则 | 说明 |
|---|
param | mixed | 是 | — | required | 由 PHP 方法签名补全 |
| 返回项 | 类型 | 说明 |
|---|
list | array | 插件列表 |
list[].id | int | ID |
list[].title | int | 名称 |
list[].description | int | 描述 |
list[].name | int | 标识 |
list[].version | int | 版本 |
list[].author | int | 开发者 |
list[].author_url | int | 开发者链接 |
list[].status | int | 状态;0:禁用,1:正常,3:未安装 |
list[].help_url | int | 申请链接 |
list[].sms_type | array | module=sms,才会有该数据,1国际,0国内 |
list[].menu_id | string | 导航ID |
list[].url | string | 导航链接 |
list[].module | string | gateway支付接口,addon插件,sms短信接口,mail邮件接口,oss对象存储接口,server模块,invoice发票接口 |
count | int | 总数 |
{
"list": [
{
"id": 1,
"title": 1,
"description": 1,
"name": 1,
"version": 1,
"author": 1,
"author_url": 1,
"status": 1,
"help_url": 1,
"sms_type": [
"string"
],
"menu_id": "1",
"url": "https://example.com/callback",
"module": "string"
}
],
"count": 1
}
| 异常类型 | 说明 |
|---|
Throwable | 调用失败时由具体实现抛出异常,异常信息以运行时结果为准。 |