瀏覽代碼

显示结算处理进度

程旭源 8 月之前
父節點
當前提交
b9d474764c
共有 1 個文件被更改,包括 4 次插入1 次删除
  1. 4 1
      application/api/controller/Index.php

+ 4 - 1
application/api/controller/Index.php

@@ -158,7 +158,10 @@ class Index extends Api
 
         $date = date("Y-m-d", $beginYesterday);
         Db::startTrans();
-        foreach ($total as $item) {
+        $totalRecord = count($total);
+        echo "总共{$totalRecord}条记录\n";
+        foreach ($total as $key=>$item) {
+            echo "正在处理第{$key}条\n";
             DayRecord::create([
                 "uid" => $item->id,
                 "addtime" => $date,