From c74d8ed2c079029cd35f91c4c6ff4e1fcd703525 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, 26 May 2023 15:48:50 +0800
Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/admin/api.php | 4 ++--
src/admin/templets/mychannel_edit.htm | 2 +-
src/admin/templets/mychannel_field_add.htm | 2 +-
src/admin/templets/mychannel_field_edit.htm | 4 ++--
src/system/common.func.php | 2 +-
5 files changed, 7 insertions(+), 7 deletions(-)
diff --git a/src/admin/api.php b/src/admin/api.php
index 1864be78..34d26f3b 100644
--- a/src/admin/api.php
+++ b/src/admin/api.php
@@ -47,7 +47,7 @@ if ($action === 'is_need_check_code') {
));
exit;
} else if ($action === 'has_new_version') {
- //判断版本sql之间差异
+ //判断版本SQL之间差异
$unQueryVer = array();
if (!TableHasField("#@__tagindex", "keywords")) {
$unQueryVer[] = "6.0.2";
@@ -300,7 +300,7 @@ if ($action === 'is_need_check_code') {
foreach ($row as $k => $ver) {
if ($ver->ispatched !== true) {
$backupVerPath = $backupPath.'/'.$ver->ver;
- //执行更新sql文件
+ //执行更新SQL文件
$sql = file_get_contents($backupVerPath.'/update.sql');
if (!empty($sql)) {
$sql = preg_replace('#ENGINE=MyISAM#i', 'TYPE=MyISAM', $sql);
diff --git a/src/admin/templets/mychannel_edit.htm b/src/admin/templets/mychannel_edit.htm
index 23851ba4..5c03b123 100644
--- a/src/admin/templets/mychannel_edit.htm
+++ b/src/admin/templets/mychannel_edit.htm
@@ -108,7 +108,7 @@
列表附加字段: |
- (用英文逗号分开,列表模板“{dede:list}{/dede:list}”中,标签“[field:name/]”调用)
+ (用英文逗号分开,列表模板“{dede:list channelid='模型id' addfields='字段1,字段2'}{/dede:list}”中,标签“[field:name/]”调用)
|
diff --git a/src/admin/templets/mychannel_field_add.htm b/src/admin/templets/mychannel_field_add.htm
index fd04004f..f1858afa 100644
--- a/src/admin/templets/mychannel_field_add.htm
+++ b/src/admin/templets/mychannel_field_add.htm
@@ -52,7 +52,7 @@
- (列表模板“{dede:list}{/dede:list}”中,标签“[field:name/]”调用)
+ (列表模板“{dede:list channelid='模型id' addfields='字段1,字段2'}{/dede:list}”中,标签“[field:name/]”调用)
|
diff --git a/src/admin/templets/mychannel_field_edit.htm b/src/admin/templets/mychannel_field_edit.htm
index 1f25444c..771e2b7f 100644
--- a/src/admin/templets/mychannel_field_edit.htm
+++ b/src/admin/templets/mychannel_field_edit.htm
@@ -52,8 +52,8 @@
前台参数: |
-
- (列表模板“{dede:list}{/dede:list}”中,标签“[field:name/]”调用)
+
+ (列表模板“{dede:list channelid='模型id' addfields='字段1,字段2'}{/dede:list}”中,标签“[field:name/]”调用)
|
diff --git a/src/system/common.func.php b/src/system/common.func.php
index f637fb32..7ea46d92 100755
--- a/src/system/common.func.php
+++ b/src/system/common.func.php
@@ -554,7 +554,7 @@ if (!function_exists('obtaintags')) {
return $tags;
}
}
-//提取文档多图片[field:body function='obtainimgs(@me,3)'/]3表示调用文档3张图片
+//提取文档多图片[field:body function='obtainimgs(@me,3)'/]3表示调用文档3张图片,body则列表附加字段需添加body字段
if (!function_exists('obtainimgs')) {
function obtainimgs($string, $num)
{