Commit 462f17b2 by 杨树贤

fix

parent 120e49ba
Showing with 2 additions and 2 deletions
......@@ -1449,13 +1449,13 @@ class DataService
foreach ($contacts as $contact) {
//判断创建时间是不是2025年1月3日的时间戳之前创建的
//如果是的话,那么就改成普通采购员
if ($contact->add_time < strtotime('2025-01-02')) {
if ($contact->add_time < strtotime('2025-01-02') && $contact->channel_user_type == 4 ) {
\dump('修改 : ' . $contact->contact_id . '编码 : ' . $contact->can_check_uids);
if ($isUpdate) {
$contact->channel_user_type = 1;
$contact->save();
}
} else {
} elseif($contact->channel_user_type == 4) {
\dump('删除 : ' . $contact->contact_id . '编码 : ' . $contact->can_check_uids);
if ($isUpdate) {
// 如果是之后创建的,就删除
......
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