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 "