Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
杨树贤
/
liexin_supplier
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
7b7fd1a3
authored
Mar 02, 2026
by
杨树贤
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
fix
parent
8a3bb2d6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
0 deletions
app/Http/Services/SupplierService.php
app/Http/Services/SupplierService.php
View file @
7b7fd1a3
...
...
@@ -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
}
... "
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment