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
d2096a09
authored
Jun 25, 2024
by
杨树贤
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
优化调试
parent
753e5143
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 additions
and
4 deletions
app/Http/Controllers/Sync/SupplierSyncController.php
app/Http/Services/SyncSupplierService.php
app/Http/Controllers/Sync/SupplierSyncController.php
View file @
d2096a09
...
@@ -54,7 +54,6 @@ class SupplierSyncController extends BaseSyncController
...
@@ -54,7 +54,6 @@ class SupplierSyncController extends BaseSyncController
public
function
receiveEntityResult
(
Request
$request
)
public
function
receiveEntityResult
(
Request
$request
)
{
{
$resultData
=
$request
->
all
();
$resultData
=
$request
->
all
();
Log
::
error
(
json_encode
(
$resultData
));
Log
::
error
(
json_encode
(
$resultData
));
//$resultData['result_map'] = !empty($resultData['result_map']) ? json_decode($resultData['result_map'], true) : [];
//$resultData['result_map'] = !empty($resultData['result_map']) ? json_decode($resultData['result_map'], true) : [];
...
@@ -92,7 +91,6 @@ class SupplierSyncController extends BaseSyncController
...
@@ -92,7 +91,6 @@ class SupplierSyncController extends BaseSyncController
->
update
(
$data
);
->
update
(
$data
);
$this
->
syncResponse
(
0
,
'获取审核结果广播成功'
);
$this
->
syncResponse
(
0
,
'获取审核结果广播成功'
);
}
}
(
new
SyncSupplierService
())
->
receiveEntityResult
(
$resultData
);
(
new
SyncSupplierService
())
->
receiveEntityResult
(
$resultData
);
$this
->
syncResponse
(
0
,
'获取审核结果广播成功'
);
$this
->
syncResponse
(
0
,
'获取审核结果广播成功'
);
...
...
app/Http/Services/SyncSupplierService.php
View file @
d2096a09
...
@@ -275,7 +275,6 @@ class SyncSupplierService
...
@@ -275,7 +275,6 @@ class SyncSupplierService
$logContent
=
$reason
=
"被驳回供应商,系统自动拉入禁止交易,请联系“风控部门”进行确认. 风险类型 :
$warningType
风险词 :
$warningKeyword
风险数据 :
$warningData
"
;
$logContent
=
$reason
=
"被驳回供应商,系统自动拉入禁止交易,请联系“风控部门”进行确认. 风险类型 :
$warningType
风险词 :
$warningKeyword
风险数据 :
$warningData
"
;
}
}
}
}
//去修改供应商入驻相关的数据
//去修改供应商入驻相关的数据
(
new
ChainService
())
->
changeChainIsEntity
(
$supplierName
,
$isEntityResult
);
(
new
ChainService
())
->
changeChainIsEntity
(
$supplierName
,
$isEntityResult
);
...
@@ -283,13 +282,13 @@ class SyncSupplierService
...
@@ -283,13 +282,13 @@ class SyncSupplierService
$supplier
=
SupplierChannelModel
::
where
(
'supplier_name'
,
$supplierName
)
$supplier
=
SupplierChannelModel
::
where
(
'supplier_name'
,
$supplierName
)
->
where
(
'status'
,
'!='
,
SupplierChannelModel
::
STATUS_PENDING
)
->
first
();
->
where
(
'status'
,
'!='
,
SupplierChannelModel
::
STATUS_PENDING
)
->
first
();
if
(
empty
(
$supplier
))
{
if
(
empty
(
$supplier
))
{
Log
::
error
(
'供应商不存在'
);
return
true
;
return
true
;
}
}
$supplier
=
$supplier
->
toArray
();
$supplier
=
$supplier
->
toArray
();
$supplierId
=
$supplier
[
'supplier_id'
];
$supplierId
=
$supplier
[
'supplier_id'
];
//先把修改之前的状态给记录下来
//先把修改之前的状态给记录下来
$status
=
$supplier
[
'status'
];
$status
=
$supplier
[
'status'
];
$preStatus
=
null
;
$preStatus
=
null
;
$redis
=
new
RedisModel
();
$redis
=
new
RedisModel
();
if
(
$isEntity
)
{
if
(
$isEntity
)
{
...
...
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