Commit 195b4c82 by 杨树贤

fix

parent 2ef15e40
Showing with 1 additions and 4 deletions
...@@ -1334,10 +1334,7 @@ class SupplierService ...@@ -1334,10 +1334,7 @@ class SupplierService
foreach ($suppliers as $supplier) { foreach ($suppliers as $supplier) {
try { try {
// 数据库重连,防止长时间运行断开
if ($result['total'] > 0 && $result['total'] % 100 == 0) {
\DB::reconnect('web');
}
$result['total']++; $result['total']++;
$supplierId = $supplier->supplier_id; $supplierId = $supplier->supplier_id;
......
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