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
23b14dbc
authored
Nov 06, 2023
by
杨树贤
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
修复bug
parent
b9ef5f05
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
3 deletions
app/Http/Services/SupplierService.php
app/Http/Services/SyncSupplierService.php
app/Http/routes.php
app/Http/Services/SupplierService.php
View file @
23b14dbc
...
...
@@ -320,7 +320,7 @@ class SupplierService
$newSupplier
=
$supplierTransformer
->
transformInfo
(
$newSupplier
);
$logType
=
!
empty
(
$channel
[
'supplier_id'
])
?
LogModel
::
UPDATE_OPERATE
:
LogModel
::
ADD_OPERATE
;
$logAction
=
!
empty
(
$channel
[
'supplier_id'
])
?
"修改供应商基本资料"
:
"新增供应商"
;
$logContent
=
!
empty
(
$channel
[
'supplier_id'
])
?
'修改供应商'
:
'新增供应商基础信息'
;
$logContent
=
!
empty
(
$channel
[
'supplier_id'
])
?
'修改供应商'
:
'新增供应商基础信息'
.
(
$isDirectApply
?
'(直接申请审核)'
:
'(草稿)'
)
;
//判断是不是申请重新入驻
if
(
!
empty
(
$oldSupplier
[
'status'
])
&&
$oldSupplier
[
'status'
]
==
-
2
)
{
$logAction
=
"申请重新入驻"
;
...
...
app/Http/Services/SyncSupplierService.php
View file @
23b14dbc
...
...
@@ -258,9 +258,10 @@ class SyncSupplierService
}
}
else
{
$preStatus
=
$redis
->
hget
(
'supplier_status_before_disable'
,
$supplierId
);
if
(
empty
(
$preStatus
)
)
{
if
(
$preStatus
===
null
)
{
$preStatus
=
$status
;
}
$redis
->
hdel
(
'supplier_status_before_disable'
,
$supplierId
);
}
//修改供应商的状态
...
...
app/Http/routes.php
View file @
23b14dbc
...
...
@@ -82,5 +82,5 @@ Route::group(['middleware' => ['external'], 'namespace' => 'Sync'], function ()
});
Route
::
match
([
'get'
,
'post'
],
'/test'
,
function
()
{
\App\Model\SupplierChannelModel
::
whereIn
(
'supplier_id'
,
[
15851
,
15850
])
->
update
([
'status'
=>
0
]
);
(
new
\App\Http\Services\SyncSupplierService
())
->
receiveEntityResult
(
'测试供应商2023110604'
,
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