Commit e1c83451 by 杨树贤

fix

parent 9ece2044
......@@ -36,6 +36,6 @@ class SetSupplierFollowUp extends Command
//DealImageService::dealNewsImage();
//DealImageService::dealNewsImage();
//DealImageService::dealSkuDetailAndImage();
DataService::replaceInventoryUser(false,10);
DataService::replaceInventoryUser(false,300);
}
}
......@@ -1556,8 +1556,7 @@ class DataService
}
$newExist = SupplierContactModel::where('supplier_id', $supplierId)->where('can_check_uids', '10326')->where('channel_user_type', 4)
->where('add_time', '>', strtotime('2025-01-02'))->first();
$newExist = SupplierContactModel::where('supplier_id', $supplierId)->where('can_check_uids', '10326')->where('channel_user_type', 4)->first();
if ($newExist) {
\dump('黄瑜娜已存在,替换成欧阳海梅');
$newExist = $newExist->toArray();
......@@ -1567,7 +1566,7 @@ class DataService
]);
}
} else {
$existingContact = SupplierContactModel::where('supplier_id', $supplierId)->where('can_check_uids', $followerCodeId)->where('channel_user_type', 1)
$existingContact = SupplierContactModel::where('supplier_id', $supplierId)->where('can_check_uids', $followerCodeId)->where('channel_user_type', 1)->orderBy('contact_id', 'desc')
->first();
if ($existingContact) {
// 如果欧阳海梅已存在,修改类型
......
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