|
@@ -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,
|