💎一站式轻松地调用各大LLM模型接口,支持GPT4、智谱、星火、月之暗面及文生图 广告
# 模板输出替换变量 #### 框架公有模版替换变量 | 变量 | 路径 | | --- | --- | | `__ROOT__` | /public/ | | ` __STATIC__` | /public/static | | `__PUBLIC__` | /public/static/assets | | ` __LIBS__ ` | /public/static/libs | | `__ADMIN_CSS__ ` | /public/static/admin/css | | `__ADMIN_JS__` | /public/static/admin/js | | `__ADMIN_IMG__` | /public/static/admin/img | #### 后台模版替换变量 | 变量 | 路径 | | --- | --- | | `__MODULE__` | /public/static/模块名 | | `__MODULE_CSS__` | /public/static/模块名/css | | ` __MODULE_JS__` | /public/static/模块名/js | | `__MODULE_IMG__` | /public/static/模块名/img | | `__MODULE_LIBS__` | /public/static/模块名/libs | #### 主题模版替换变量 | 变量 | 路径 | | --- | --- | | `__THEME_CSS__` | /public/theme/主题名/public/css | | ` __THEME_JS__` | /public/theme/主题名/public/js | | `__THEME_IMG__` | /public/theme/主题名/public/img | | `__THEME_LIBS__` | /public/theme/主题名/public/libs | | `__MODULE_STATIC__` | /public/static/模块名/ | | `__MODULE_CSS__` | /public/static/模块名/css | | ` __MODULE_JS__` | /public/static/模块名/js | | `__MODULE_IMG__` | /public/static/模块名/img | | `__MODULE_LIBS__` | /public/static/模块名/libs | #### 模版变量 | 变量 | 说明 | 例子 | | --- | --- | --- | | get_image | 获取图片 |` {$data.img|get_image}` | | get_nickname | 获取用户名 |` {$data.uid|get_nickname}` | | format_money | 金额格式化,例如120.00 |` {$data.money|format_money}` |