From 0af0d6476c348c52f099a1503182af27378853ba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8F=99=E8=BF=B0=E3=80=81=E5=88=AB=E7=A6=BB?= <93301500+xushubieli@users.noreply.github.com> Date: Fri, 2 May 2025 17:33:31 +0800 Subject: [PATCH] fix --- src/system/taglib/help/arclist.txt | 2 +- src/system/taglib/help/sql.txt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/system/taglib/help/arclist.txt b/src/system/taglib/help/arclist.txt index 1e165eef..cd9e4363 100755 --- a/src/system/taglib/help/arclist.txt +++ b/src/system/taglib/help/arclist.txt @@ -26,5 +26,5 @@ orderway='desc' 文档排序:默认desc降序(asc升序) subday='7' 调用7天内发布的文档 【进阶用法】 channelid='1' addfields='diy' 调用文档模型id为1的diy字段(需在后台添加附加字段,多个字段,例:addfields='diy,url',则标签为[field:diy/][field:url/]) -function='cn_substr(Html2text("@me")."...",190)' 截取并过滤HTML内容为180字符(全局方法,则标签为[field:diy function='cn_substr(Html2text("@me")."...",180)'/]) +function='cn_substr(Html2text("@me")."...",190)' 过滤网页代码,限制显示190个字符(全局方法,则标签为[field:diy function='cn_substr(Html2text("@me")."...",190)'/]) 注:在后台-系统设置-SQL命令工具-数据库文档,查看数据库表了解更多信息 \ No newline at end of file diff --git a/src/system/taglib/help/sql.txt b/src/system/taglib/help/sql.txt index efb18691..beb6ec2b 100755 --- a/src/system/taglib/help/sql.txt +++ b/src/system/taglib/help/sql.txt @@ -3,5 +3,5 @@ SQL标签 {dede:sql sql='编写SQL代码'}编写字段{/dede:sql} >>dede>> 【进阶用法】 -{dede:sql sql='SELECT * FROM `#@__arctype` WHERE id=1'}[field:content function='cn_substr(Html2text("@me")."...",180)'/]{/dede:sql} 调用指定栏目内容,过滤网页代码,限制显示180个字符 +{dede:sql sql='SELECT * FROM `#@__arctype` WHERE id=1'}[field:content function='cn_substr(Html2text("@me")."...",180)'/]{/dede:sql} 调用指定栏目id内容,过滤网页代码,限制显示180个字符 注:在后台-系统设置-SQL命令工具-数据库文档,查看数据库表了解更多信息 \ No newline at end of file