Commit 7b7fd1a3 by 杨树贤

fix

parent 8a3bb2d6
Showing with 11 additions and 0 deletions
......@@ -1338,6 +1338,17 @@ class SupplierService
$supplierId = $supplier->supplier_id;
$yunxinChannelUid = $supplier->yunxin_channel_uid;
// 检查今天6点后是否有新增联系人,有则跳过
$today6pm = strtotime(date('Y-m-d') . ' 18:00:00');
$hasNewContact = SupplierContactModel::where('supplier_id', $supplierId)
->where('add_time', '>', $today6pm)
->exists();
if ($hasNewContact) {
echo "[{$result['total']}] ID:{$supplierId} {$supplier->supplier_name} ... 跳过(6点后有新增联系人)\n";
$result['skipped']++;
continue;
}
// 实时输出进度
echo "[{$result['total']}] ID:{$supplierId} {$supplier->supplier_name} ... ";
......
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