Commit 001dbadf by 杨树贤

fix

parent 68af43ea
Showing with 1 additions and 1 deletions
......@@ -1336,7 +1336,7 @@ class SupplierService
foreach ($suppliers as $supplier) {
try {
// 每100条重连数据库防止超时
if ($result['total'] > 0 && $result['total'] % 100 == 0) {
if ($result['total'] > 0 && $result['total'] % 10000 == 0) {
\DB::reconnect('web');
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment