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
0051280e
authored
Nov 02, 2023
by
杨树贤
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
调试
parent
d575d8b4
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
1 deletions
app/Http/Controllers/Sync/SupplierSyncController.php
app/Http/Services/SyncSupplierService.php
app/Http/routes.php
app/Http/Controllers/Sync/SupplierSyncController.php
View file @
0051280e
...
...
@@ -10,6 +10,7 @@ use App\Http\Services\SupplierService;
use
App\Http\Services\SyncSupplierService
;
use
App\Model\SupplierChannelModel
;
use
Illuminate\Http\Request
;
use
Illuminate\Support\Facades\Log
;
use
Illuminate\Support\Facades\Validator
;
...
...
app/Http/Services/SyncSupplierService.php
View file @
0051280e
...
...
@@ -171,6 +171,7 @@ class SyncSupplierService
//接收一体化系统处理好的供应商数据,可能是第一次新增返回的数据,也可能是一体化那边修改的数据需要同步到供应商
public
function
syncSupplierToUnitedResult
(
$syncResult
)
{
Log
::
warning
(
json_encode
(
$syncResult
));
$redis
=
new
RedisModel
();
$groupCode
=
array_get
(
$syncResult
,
'group_code'
);
$sourceSn
=
array_get
(
$syncResult
,
'source_sn'
);
...
...
app/Http/routes.php
View file @
0051280e
...
...
@@ -82,5 +82,5 @@ Route::group(['middleware' => ['external'], 'namespace' => 'Sync'], function ()
});
Route
::
match
([
'get'
,
'post'
],
'/test'
,
function
()
{
(
new
\App\Http\Services\SyncSupplierService
())
->
receiveEntityResult
(
'
城茗(國際)有限公司'
,
1
);
(
new
\App\Http\Services\SyncSupplierService
())
->
receiveEntityResult
(
'
沛县懒洋洋服装店'
,
-
1
);
});
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