We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cdf6782 commit ea1e13fCopy full SHA for ea1e13f
laravel/app/Http/Repository/ApiRepository.php
@@ -89,7 +89,7 @@ public function autoFailed()
89
continue;
90
}
91
// 记录完成率
92
- $finish = ($excel->total_excel / ($excel->sort_index + 1)) * 100;
+ $finish = (($excel->sort_index + 1) / $excel->total_excel) * 100;
93
$finish = sprintf("%.2f", $finish);
94
if (($finish > '96' && strtotime($excel->created_at) + 5 < time()) || ($finish > '50' && strtotime($excel->created_at) + 60 < time()) || ($finish > '10' && strtotime($excel->created_at) + 300 < time()) || ($finish > '1' && strtotime($excel->created_at) + 600 < time())) {
95
ApiExcel::where('id', $excel->id)->update(['state' => 5]);
0 commit comments