测试连接
方法概览
| 项目 | 内容 |
|---|---|
| 文档类型 | PHP 类方法 |
| 方法标识 | app\common\logic\ModuleLogic::testConnect |
| 所属业务 | 公共接口 |
| 来源模块/系统 | 模块逻辑 |
功能说明
测试连接
调用示例
$ServerModel = 'string';
$result = (new \app\common\logic\ModuleLogic())->testConnect($ServerModel);参数
| 参数 | 类型 | 必填 | 默认值 | 校验规则 | 说明 |
|---|---|---|---|---|---|
ServerModel | ServerModel | 是 | — | require | 接口模型 |
返回值
| 返回项 | 类型 | 说明 |
|---|---|---|
status | int | 200=连接成功,400=连接失败 |
msg | string | 信息 |
正常返回
{
"status": 1,
"msg": "string"
}异常情况
| 异常类型 | 说明 |
|---|---|
Throwable | 调用失败时由具体实现抛出异常,异常信息以运行时结果为准。 |