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
634886e8
authored
Mar 03, 2026
by
杨树贤
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
修改队列
parent
6836e7ae
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
8 deletions
app/Console/Commands/SyncSupplierToErp.php
app/Http/Services/SyncSupplierService.php
app/Console/Commands/SyncSupplierToErp.php
View file @
634886e8
...
@@ -52,10 +52,10 @@ class SyncSupplierToErp extends Command
...
@@ -52,10 +52,10 @@ class SyncSupplierToErp extends Command
$syncService
=
new
SyncSupplierService
();
$syncService
=
new
SyncSupplierService
();
$success
=
0
;
$success
=
0
;
$count
=
0
;
$count
=
0
;
$conn
=
new
AMQPStreamConnection
(
config
(
'database.connections.rabbitmq.host'
),
$conn
=
new
AMQPStreamConnection
(
config
(
'database.connections.rabbitmq
2
.host'
),
config
(
'database.connections.rabbitmq.port'
),
config
(
'database.connections.rabbitmq
2
.port'
),
config
(
'database.connections.rabbitmq.login'
),
config
(
'database.connections.rabbitmq
2
.login'
),
config
(
'database.connections.rabbitmq.password'
));
config
(
'database.connections.rabbitmq
2
.password'
));
foreach
(
$suppliers
as
$supplier
)
{
foreach
(
$suppliers
as
$supplier
)
{
$count
++
;
$count
++
;
$supplierId
=
$supplier
->
supplier_id
;
$supplierId
=
$supplier
->
supplier_id
;
...
...
app/Http/Services/SyncSupplierService.php
View file @
634886e8
...
@@ -146,10 +146,10 @@ class SyncSupplierService
...
@@ -146,10 +146,10 @@ class SyncSupplierService
if
(
$conn
)
{
if
(
$conn
)
{
}
else
{
}
else
{
$conn
=
new
AMQPStreamConnection
(
$conn
=
new
AMQPStreamConnection
(
config
(
'database.connections.rabbitmq.host'
),
config
(
'database.connections.rabbitmq
2
.host'
),
config
(
'database.connections.rabbitmq.port'
),
config
(
'database.connections.rabbitmq
2
.port'
),
config
(
'database.connections.rabbitmq.login'
),
config
(
'database.connections.rabbitmq
2
.login'
),
config
(
'database.connections.rabbitmq.password'
)
config
(
'database.connections.rabbitmq
2
.password'
)
);
);
}
}
$channel
=
$conn
->
channel
();
$channel
=
$conn
->
channel
();
...
...
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