Browse Source

优化进度条,加快生成

tags/6.1.9
xushubieli 7 months ago
parent
commit
2b9b2c39fa
2 changed files with 7 additions and 0 deletions
  1. +5
    -0
      src/admin/article_description_main.php
  2. +2
    -0
      src/admin/makehtml_archives_action.php

+ 5
- 0
src/admin/article_description_main.php View File

@@ -133,6 +133,11 @@ if ($dojob == '') {
}
}//end if limit
//返回进度提示
if ($totalnum > 0) {
$tjlen = ceil(($tjnum / $totalnum) * 100);
} else {
$tjlen = 100;
}
$tjsta .= "完成处理文档总数 $tjlen %";
if ($tjnum < $totalnum) {
$nurl = "article_description_main.php?totalnum=$totalnum&startdd=".($startdd + $pagesize)."&pagesize=$pagesize&table={$table}&field={$field}&dsize={$dsize}&msize={$msize}&channel={$channel}&dojob={$dojob}";


+ 2
- 0
src/admin/makehtml_archives_action.php View File

@@ -73,6 +73,8 @@ while ($row = $dsql->GetObject('out')) {
$ac = new Archives($id);
$rurl = $ac->MakeHtml(0);
}
$t2 = ExecTime();
$t2 = ($t2 - $est1);
//返回提示信息
$tjlen = $totalnum > 0 ? ceil(($tjnum / $totalnum) * 100) : 100;
$tjsta .= "到达位置:".($startdd + $pagesize).",继续执行任务<br>完成创建文件总数 $tjlen %";


Loading…
Cancel
Save