Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
openApi
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
hj
openApi
Commits
e78015f7
Commit
e78015f7
authored
Dec 31, 2022
by
hangjun83
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
更新
parent
63ada51b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
5 deletions
+6
-5
server/app/Services/ThirdPlatform/LeyanService.php
server/app/Services/ThirdPlatform/LeyanService.php
+6
-5
No files found.
server/app/Services/ThirdPlatform/LeyanService.php
View file @
e78015f7
...
...
@@ -172,7 +172,12 @@ class LeyanService
->
get
()
->
toArray
();
$pro_data
=
[];
if
(
empty
(
$productRow
)
&&
$status
==
1
)
{
if
(
empty
(
$productRow
))
{
if
(
$status
==
0
){
SimpleLogs
::
writeLog
(
'Leyan cas : '
.
$chemicalsRow
->
c_cas
.
'为下架状态不做更新'
,
__CLASS__
.
':storeLeyanProducts'
);
continue
;
}
$pro_data
[
'b_id'
]
=
$bId
;
$pro_data
[
'c_id'
]
=
$chemicalsRow
->
c_id
;
...
...
@@ -221,10 +226,6 @@ class LeyanService
if
(
$id
>
0
){
SimpleLogs
::
writeLog
(
'Leyan p_id : '
.
$id
.
' cas : '
.
$chemicalsRow
->
c_cas
.
' 更新成功,更新时间:'
.
date
(
'Y-m-d H:i:s'
,
time
()),
__CLASS__
.
':storeLeyanProducts'
);
}
else
{
if
(
$status
==
0
){
SimpleLogs
::
writeLog
(
'Leyan cas : '
.
$chemicalsRow
->
c_cas
.
'为下架状态不做更新'
,
__CLASS__
.
':storeLeyanProducts'
);
}
}
}
...
...
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