@@ -47,7 +47,7 @@ if ($action === 'is_need_check_code') { | |||||
)); | )); | ||||
exit; | exit; | ||||
} else if ($action === 'has_new_version') { | } else if ($action === 'has_new_version') { | ||||
//判断版本sql之间差异 | |||||
//判断版本SQL之间差异 | |||||
$unQueryVer = array(); | $unQueryVer = array(); | ||||
if (!TableHasField("#@__tagindex", "keywords")) { | if (!TableHasField("#@__tagindex", "keywords")) { | ||||
$unQueryVer[] = "6.0.2"; | $unQueryVer[] = "6.0.2"; | ||||
@@ -300,7 +300,7 @@ if ($action === 'is_need_check_code') { | |||||
foreach ($row as $k => $ver) { | foreach ($row as $k => $ver) { | ||||
if ($ver->ispatched !== true) { | if ($ver->ispatched !== true) { | ||||
$backupVerPath = $backupPath.'/'.$ver->ver; | $backupVerPath = $backupPath.'/'.$ver->ver; | ||||
//执行更新sql文件 | |||||
//执行更新SQL文件 | |||||
$sql = file_get_contents($backupVerPath.'/update.sql'); | $sql = file_get_contents($backupVerPath.'/update.sql'); | ||||
if (!empty($sql)) { | if (!empty($sql)) { | ||||
$sql = preg_replace('#ENGINE=MyISAM#i', 'TYPE=MyISAM', $sql); | $sql = preg_replace('#ENGINE=MyISAM#i', 'TYPE=MyISAM', $sql); | ||||
@@ -108,7 +108,7 @@ | |||||
<td>列表附加字段:</td> | <td>列表附加字段:</td> | ||||
<td> | <td> | ||||
<input type="text" name="listfields" id="listfields" class="admin-input-lg" value="<?php echo $row['listfields'];?>" class="w-50"> | <input type="text" name="listfields" id="listfields" class="admin-input-lg" value="<?php echo $row['listfields'];?>" class="w-50"> | ||||
<span>(用英文逗号分开,列表模板“{dede:list}{/dede:list}”中,标签“[field:name/]”调用)</span> | |||||
<span>(用英文逗号分开,列表模板“{dede:list channelid='模型id' addfields='字段1,字段2'}{/dede:list}”中,标签“[field:name/]”调用)</span> | |||||
</td> | </td> | ||||
</tr> | </tr> | ||||
<tr> | <tr> | ||||
@@ -52,7 +52,7 @@ | |||||
<td> | <td> | ||||
<label><input type="checkbox" name="notsend" id="notsend" value="1"> 投稿和采集禁用字段</label> | <label><input type="checkbox" name="notsend" id="notsend" value="1"> 投稿和采集禁用字段</label> | ||||
<label><input type="checkbox" name="islist" id="islist" value="1"> 是否增加列表附加字段</label> | <label><input type="checkbox" name="islist" id="islist" value="1"> 是否增加列表附加字段</label> | ||||
<span>(列表模板“{dede:list}{/dede:list}”中,标签“[field:name/]”调用)</span> | |||||
<span>(列表模板“{dede:list channelid='模型id' addfields='字段1,字段2'}{/dede:list}”中,标签“[field:name/]”调用)</span> | |||||
</td> | </td> | ||||
</tr> | </tr> | ||||
<tr> | <tr> | ||||
@@ -52,8 +52,8 @@ | |||||
<td>前台参数:</td> | <td>前台参数:</td> | ||||
<td> | <td> | ||||
<label><input type="checkbox" name="notsend" id="notsend" value="1" <?php echo ($ctag->GetAtt('notsend')==1 ? " checked":"");?>> 投稿和采集禁用字段</label> | <label><input type="checkbox" name="notsend" id="notsend" value="1" <?php echo ($ctag->GetAtt('notsend')==1 ? " checked":"");?>> 投稿和采集禁用字段</label> | ||||
<label><input type="checkbox" name="islist" id="islist" value="1" <?php echo ($ctag->GetAtt('islist')==1 ? " checked":"");?>> 使字段可以在列表的底层模板中获得</label> | |||||
<span>(列表模板“{dede:list}{/dede:list}”中,标签“[field:name/]”调用)</span> | |||||
<label><input type="checkbox" name="islist" id="islist" value="1" <?php echo ($ctag->GetAtt('islist')==1 ? " checked":"");?>> 是否增加列表附加字段</label> | |||||
<span>(列表模板“{dede:list channelid='模型id' addfields='字段1,字段2'}{/dede:list}”中,标签“[field:name/]”调用)</span> | |||||
</td> | </td> | ||||
</tr> | </tr> | ||||
<tr> | <tr> | ||||
@@ -554,7 +554,7 @@ if (!function_exists('obtaintags')) { | |||||
return $tags; | return $tags; | ||||
} | } | ||||
} | } | ||||
//提取文档多图片[field:body function='obtainimgs(@me,3)'/]3表示调用文档3张图片 | |||||
//提取文档多图片[field:body function='obtainimgs(@me,3)'/]3表示调用文档3张图片,body则列表附加字段需添加body字段 | |||||
if (!function_exists('obtainimgs')) { | if (!function_exists('obtainimgs')) { | ||||
function obtainimgs($string, $num) | function obtainimgs($string, $num) | ||||
{ | { | ||||