Skip to content

Commit 8426110

Browse files
committed
fix(repo): 使用 $total_excel 计算值
1 parent ff29b9e commit 8426110

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

laravel/app/Http/Repository/MultithreadingRepository.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -643,7 +643,7 @@ public function completionRate($excel_id)
643643
// 2. 查询 api_excel_logs 表更新的数据量
644644
$total = ApiExcelLogs::where('api_excel_id', $excel_id)->count();
645645
// 3. 返回完成率
646-
return floor($total / $api_excel['total_excel'] * 100);
646+
return floor($total / $total_excel * 100);
647647
}
648648
}
649649
}

0 commit comments

Comments
 (0)