From a357e001444deb2d76c64034ce58a46c520bdac2 Mon Sep 17 00:00:00 2001 From: tianya Date: Thu, 27 Aug 2020 15:33:13 +0800 Subject: [PATCH] =?UTF-8?q?TAG=E7=94=9F=E6=88=90=E6=98=BE=E7=A4=BA?= =?UTF-8?q?=E5=B9=B3=E5=9D=87=E6=95=B0=E4=BB=A5=E4=B8=8A=E7=9A=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/dede/makehtml_taglist_action.php | 5 +++-- src/dede/templets/makehtml_taglist.htm | 4 +++- src/include/taglib/tag.lib.php | 15 +++++---------- 3 files changed, 11 insertions(+), 13 deletions(-) diff --git a/src/dede/makehtml_taglist_action.php b/src/dede/makehtml_taglist_action.php index 57a86fa..146438f 100644 --- a/src/dede/makehtml_taglist_action.php +++ b/src/dede/makehtml_taglist_action.php @@ -28,13 +28,14 @@ if ($tagid > 0) { } $allfinish = false; // 是否全部完成 +$dd = $dsql->GetOne("SELECT ROUND(AVG(total)) as tt FROM `#@__tagindex`"); // 取一个平均 + if ($upall == 1 && $ctagid == 0) { - $rr = $dsql->GetOne("SELECT * FROM `#@__tagindex` WHERE mktime <> uptime LIMIT 1"); + $rr = $dsql->GetOne("SELECT * FROM `#@__tagindex` WHERE mktime <> uptime AND total > {$dd['tt']} LIMIT 1"); if (!empty($rr) && count($rr) > 0) { $ctagid = $rr['id']; } else { $allfinish = true; - } } diff --git a/src/dede/templets/makehtml_taglist.htm b/src/dede/templets/makehtml_taglist.htm index f12b7ca..68eee5f 100644 --- a/src/dede/templets/makehtml_taglist.htm +++ b/src/dede/templets/makehtml_taglist.htm @@ -25,7 +25,8 @@ 选择TAG: GetOne("SELECT ROUND(AVG(total)) as tt FROM `#@__tagindex`"); // 取一个平均 + $sql="select * from #@__tagindex where total > {$dd['tt']} order by tag asc"; $dsql->Execute('al',$sql); echo "