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
68af43ea
authored
Mar 02, 2026
by
杨树贤
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
fix
parent
eb3dc441
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
1 deletions
app/Http/Services/SupplierService.php
app/Http/Services/SupplierService.php
View file @
68af43ea
...
@@ -1302,6 +1302,9 @@ class SupplierService
...
@@ -1302,6 +1302,9 @@ class SupplierService
{
{
ini_set
(
'memory_limit'
,
-
1
);
ini_set
(
'memory_limit'
,
-
1
);
set_time_limit
(
0
);
set_time_limit
(
0
);
ignore_user_abort
(
true
);
ob_implicit_flush
(
true
);
$supplierService
=
new
self
();
$supplierService
=
new
self
();
$adminUserService
=
new
AdminUserService
();
$adminUserService
=
new
AdminUserService
();
...
@@ -1310,7 +1313,7 @@ class SupplierService
...
@@ -1310,7 +1313,7 @@ class SupplierService
$isProdMode
=
(
$mode
===
'prod'
);
$isProdMode
=
(
$mode
===
'prod'
);
// 构建查询
// 构建查询
$query
=
SupplierChannelModel
::
where
(
'is_type'
,
0
)
->
where
(
'supplier_id'
,
'>'
,
1
2323
)
$query
=
SupplierChannelModel
::
where
(
'is_type'
,
0
)
->
where
(
'supplier_id'
,
'>'
,
1
3856
)
->
where
(
'yunxin_channel_uid'
,
'!='
,
''
);
->
where
(
'yunxin_channel_uid'
,
'!='
,
''
);
// 如果num>0则限制数量,否则不限制
// 如果num>0则限制数量,否则不限制
...
@@ -1332,6 +1335,11 @@ class SupplierService
...
@@ -1332,6 +1335,11 @@ class SupplierService
foreach
(
$suppliers
as
$supplier
)
{
foreach
(
$suppliers
as
$supplier
)
{
try
{
try
{
// 每100条重连数据库防止超时
if
(
$result
[
'total'
]
>
0
&&
$result
[
'total'
]
%
100
==
0
)
{
\DB
::
reconnect
(
'web'
);
}
$result
[
'total'
]
++
;
$result
[
'total'
]
++
;
$supplierId
=
$supplier
->
supplier_id
;
$supplierId
=
$supplier
->
supplier_id
;
$yunxinChannelUid
=
$supplier
->
yunxin_channel_uid
;
$yunxinChannelUid
=
$supplier
->
yunxin_channel_uid
;
...
...
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