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
1cd2513c
authored
Dec 24, 2024
by
杨树贤
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
添加日志
parent
a3f73892
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
1 deletions
app/Http/Services/SyncSupplierService.php
app/Http/routes.php
app/Http/Services/SyncSupplierService.php
View file @
1cd2513c
...
...
@@ -132,6 +132,7 @@ class SyncSupplierService
}
$channel
=
$conn
->
channel
();
$channel
->
queue_declare
(
'supplier_sync'
,
false
,
true
,
false
,
false
);
Log
::
warning
(
json_encode
(
$message
));
$msg
=
new
AMQPMessage
(
json_encode
(
$message
),
array
(
'content_type'
=>
'text/plain'
));
$result
=
$channel
->
basic_publish
(
$msg
,
''
,
'supplier_sync'
);
...
...
app/Http/routes.php
View file @
1cd2513c
...
...
@@ -84,5 +84,5 @@ Route::group(['middleware' => ['external'], 'namespace' => 'Sync'], function ()
});
Route
::
match
([
'get'
,
'post'
],
'/test'
,
function
()
{
\App\Http\Services\DataService
::
getSpuAttrs
(
);
(
new
\App\Http\Services\SyncSupplierService
())
->
syncSupplierToErp
(
2335
);
});
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