Browse Source

修正权重混乱的错误

tags/6.1.9
tianya 1 month ago
parent
commit
338ac08b77
4 changed files with 8 additions and 8 deletions
  1. +2
    -2
      src/admin/album_add.php
  2. +2
    -2
      src/admin/archives_add.php
  3. +2
    -2
      src/admin/article_add.php
  4. +2
    -2
      src/admin/soft_add.php

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

@@ -29,8 +29,8 @@ if ($dopost != 'save') {
//获得频道模型信息
$cInfos = $dsql->GetOne(" SELECT * FROM `#@__channeltype` WHERE id='$channelid' ");
$channelid = $cInfos['id'];
//获取文章最大id以确定当前权重
$maxWright = $dsql->GetOne("SELECT COUNT(*) AS cc FROM #@__archives");
//获取文章最大id+1以确定当前权重
$maxWright = $dsql->GetOne("SELECT id+1 AS cc FROM `#@__archives` ORDER BY id DESC LIMIT 1");
include DedeInclude("templets/album_add.htm");
exit();
}


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

@@ -32,8 +32,8 @@ if ($dopost != 'save') {
//获得频道模型信息
$cInfos = $dsql->GetOne(" SELECT * FROM `#@__channeltype` WHERE id='$channelid' ");
$channelid = $cInfos['id'];
//获取文章最大id以确定当前权重
$maxWright = $dsql->GetOne("SELECT COUNT(*) AS cc FROM #@__archives");
//获取文章最大id+1以确定当前权重
$maxWright = $dsql->GetOne("SELECT id+1 AS cc FROM `#@__archives` ORDER BY id DESC LIMIT 1");
include DedeInclude('templets/archives_add.htm');
exit();
}


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

@@ -41,8 +41,8 @@ if ($dopost != 'save') {
}
//获得频道模型信息
$cInfos = $dsql->GetOne(" Select * From `#@__channeltype` where id='$channelid' ");
//获取文章最大id以确定当前权重
$maxWright = $dsql->GetOne("SELECT COUNT(*) AS cc FROM `#@__archives`");
//获取文章最大id+1以确定当前权重
$maxWright = $dsql->GetOne("SELECT id+1 AS cc FROM `#@__archives` ORDER BY id DESC LIMIT 1");

include DedeInclude("templets/article_add.htm");
exit();


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

@@ -30,8 +30,8 @@ if ($dopost != 'save') {
//获得频道模型信息
$cInfos = $dsql->GetOne(" SELECT * FROM `#@__channeltype` WHERE id='$channelid' ");
$channelid = $cInfos['id'];
//获取文章最大id以确定当前权重
$maxWright = $dsql->GetOne("SELECT COUNT(*) AS cc FROM #@__archives");
//获取文章最大id+1以确定当前权重
$maxWright = $dsql->GetOne("SELECT id+1 AS cc FROM `#@__archives` ORDER BY id DESC LIMIT 1");
include DedeInclude("templets/soft_add.htm");
exit();
}


Loading…
Cancel
Save