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) {