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
25534aec
authored
Nov 24, 2023
by
杨树贤
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
防止更新时间问题
parent
a43ca413
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
4 deletions
app/Http/Controllers/Sync/SupplierSyncController.php
app/Http/routes.php
app/Http/Controllers/Sync/SupplierSyncController.php
View file @
25534aec
...
@@ -76,12 +76,10 @@ class SupplierSyncController extends BaseSyncController
...
@@ -76,12 +76,10 @@ class SupplierSyncController extends BaseSyncController
$data
[
'block_reason'
]
=
'一体化系统黑名单供应商'
;
$data
[
'block_reason'
]
=
'一体化系统黑名单供应商'
;
$data
[
'is_entity'
]
=
-
1
;
$data
[
'is_entity'
]
=
-
1
;
$data
[
'update_time'
]
=
time
();
$data
[
'update_time'
]
=
time
();
$result
=
SupplierChannelModel
::
where
(
'supplier_name'
,
$resultData
[
'company_name'
])
SupplierChannelModel
::
where
(
'supplier_name'
,
$resultData
[
'company_name'
])
->
update
(
$data
);
->
update
(
$data
);
if
(
$result
)
{
$this
->
syncResponse
(
0
,
'获取审核结果广播成功'
);
$this
->
syncResponse
(
0
,
'获取审核结果广播成功'
);
}
}
}
(
new
SyncSupplierService
())
->
receiveEntityResult
(
$resultData
[
'company_name'
],
$resultData
[
'result'
]);
(
new
SyncSupplierService
())
->
receiveEntityResult
(
$resultData
[
'company_name'
],
$resultData
[
'result'
]);
$this
->
syncResponse
(
0
,
'获取审核结果广播成功'
);
$this
->
syncResponse
(
0
,
'获取审核结果广播成功'
);
...
...
app/Http/routes.php
View file @
25534aec
...
@@ -82,5 +82,5 @@ Route::group(['middleware' => ['external'], 'namespace' => 'Sync'], function ()
...
@@ -82,5 +82,5 @@ Route::group(['middleware' => ['external'], 'namespace' => 'Sync'], function ()
});
});
Route
::
match
([
'get'
,
'post'
],
'/test'
,
function
()
{
Route
::
match
([
'get'
,
'post'
],
'/test'
,
function
()
{
(
new
\App\Http\Services\SyncSupplierService
())
->
receiveEntityResult
(
'
深圳市嘉洛兴实业发展有限公司'
,
1
);
(
new
\App\Http\Services\SyncSupplierService
())
->
receiveEntityResult
(
'
中山市汉仁电子有限公司'
,
-
2
);
});
});
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