Browse Source

调整

tags/6.2.8
叙述、别离 1 year ago
parent
commit
c74d8ed2c0
5 changed files with 7 additions and 7 deletions
  1. +2
    -2
      src/admin/api.php
  2. +1
    -1
      src/admin/templets/mychannel_edit.htm
  3. +1
    -1
      src/admin/templets/mychannel_field_add.htm
  4. +2
    -2
      src/admin/templets/mychannel_field_edit.htm
  5. +1
    -1
      src/system/common.func.php

+ 2
- 2
src/admin/api.php View File

@@ -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);


+ 1
- 1
src/admin/templets/mychannel_edit.htm View File

@@ -108,7 +108,7 @@
<td>列表附加字段:</td>
<td>
<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>
</tr>
<tr>


+ 1
- 1
src/admin/templets/mychannel_field_add.htm View File

@@ -52,7 +52,7 @@
<td>
<label><input type="checkbox" name="notsend" id="notsend" 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>
</tr>
<tr>


+ 2
- 2
src/admin/templets/mychannel_field_edit.htm View File

@@ -52,8 +52,8 @@
<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="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>
</tr>
<tr>


+ 1
- 1
src/system/common.func.php View File

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


Loading…
Cancel
Save