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
28426dfe
Commit
28426dfe
authored
Sep 08, 2022
by
hangjun83
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
BJS
parent
30057e99
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
4 deletions
+7
-4
server/app/Services/BhProductsService.php
server/app/Services/BhProductsService.php
+7
-4
No files found.
server/app/Services/BhProductsService.php
View file @
28426dfe
...
...
@@ -2,6 +2,7 @@
namespace
App\Services
;
use
App\Support\Facades\SimpleLogs
;
use
Illuminate\Support\Facades\DB
;
...
...
@@ -98,11 +99,12 @@ class BhProductsService
$dbConnect
->
commit
();
app
(
SysLogService
::
class
)
->
addApiLogs
(
'p_id : '
.
$id
.
' cas : '
.
$chemicalsRow
->
c_cas
.
' 更新成功,更新时间:'
.
date
(
'Y-m-d H:i:s'
,
time
())
);
SimpleLogs
::
writeLog
(
'Bide p_id : '
.
$id
.
' cas : '
.
$chemicalsRow
->
c_cas
.
' 更新成功,更新时间:'
.
date
(
'Y-m-d H:i:s'
,
time
()),
__CLASS__
.
':storeBjsProducts'
);
return
true
;
}
catch
(
\Exception
$exception
){
SimpleLogs
::
writeLog
(
$exception
->
getMessage
(),
__CLASS__
.
':storeBjsProducts'
,
'error'
);
$dbConnect
->
rollback
();
throw
$exception
;
}
...
...
@@ -174,7 +176,7 @@ class BhProductsService
$pro_data
[
'p_tod'
]
=
$p_tod
;
$pro_data
[
'p_weight'
]
=
'0.01'
;
$pro_data
[
'p_status'
]
=
1
;
$pro_data
[
'p_show'
]
=
1
;
$pro_data
[
'p_show'
]
=
0
;
$pro_data
[
'prom_from'
]
=
0
;
$pro_data
[
'prom_to'
]
=
0
;
...
...
@@ -185,7 +187,7 @@ class BhProductsService
$productRow
=
current
(
$productRow
);
$pro_data
[
'p_status'
]
=
1
;
$pro_data
[
'p_show'
]
=
1
;
$pro_data
[
'p_show'
]
=
0
;
$pro_data
[
'p_price'
]
=
$product
[
'Price'
];
$pro_data
[
'p_tod'
]
=
$p_tod
;
$pro_data
[
'modifytime'
]
=
time
();
...
...
@@ -199,11 +201,12 @@ class BhProductsService
$dbConnect
->
commit
();
app
(
SysLogService
::
class
)
->
addApiLogs
(
'p_id : '
.
$id
.
' cas : '
.
$chemicalsRow
->
c_cas
.
' 更新成功,更新时间:'
.
date
(
'Y-m-d H:i:s'
,
time
())
);
SimpleLogs
::
writeLog
(
'Bjs p_id : '
.
$id
.
' cas : '
.
$chemicalsRow
->
c_cas
.
' 更新成功,更新时间:'
.
date
(
'Y-m-d H:i:s'
,
time
()),
__CLASS__
.
':storeBjsProducts'
);
return
true
;
}
catch
(
\Exception
$exception
){
SimpleLogs
::
writeLog
(
$exception
->
getMessage
(),
__CLASS__
.
':storeBjsProducts'
,
'error'
);
$dbConnect
->
rollback
();
throw
$exception
;
}
...
...
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