智简魔方文档

获取系统相关变量

方法概览

项目内容
文档类型PHP 类方法
方法标识app\common\logic\NoticeTemplateVarLogic::getSystemVar
所属业务消息通知
来源模块/系统通知模板变量逻辑

功能说明

获取系统相关变量

调用示例

$result = (new \app\common\logic\NoticeTemplateVarLogic())->getSystemVar();

参数

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

返回值

返回项类型说明
system_website_namestring网站名称
system_website_urlstring网站地址
send_timestring发送时间

正常返回

{
  "system_website_name": "示例名称",
  "system_website_url": "https://example.com/callback",
  "send_time": "string"
}

异常情况

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