Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
朱继来
/
后台订单管理
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
9064e465
authored
Oct 19, 2020
by
朱继来
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
添加日志
parent
d8d6049f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletions
app/Http/Controllers/ApiController.php
app/Http/Controllers/ApiController.php
View file @
9064e465
...
...
@@ -16,6 +16,7 @@ use App\Model\OrderExtendModel;
use
App\Model\OrderItemsModel
;
use
App\Model\OrderItemsTrackModel
;
use
App\Model\UserSampleApplyModel
;
use
App\Model\OrderActionLogModel
;
use
App\Model\UserSampleInviteModel
;
use
App\Model\UserGroupModel
;
use
App\Model\BrandBlackListModel
;
...
...
@@ -377,13 +378,18 @@ class ApiController extends Controller
$erp_sn
=
$request
->
input
(
'erp_sn'
);
$OrderExtendModel
=
new
OrderExtendModel
;
$OrderActionLogModel
=
new
OrderActionLogModel
;
$old_erp_sn
=
$OrderExtendModel
->
where
(
'order_id'
,
$order_id
)
->
value
(
'erp_sn'
);
$res
=
$OrderExtendModel
->
where
(
'order_id'
,
$order_id
)
->
update
([
'erp_sn'
=>
$erp_sn
]);
if
(
$res
===
false
)
{
$this
->
Export
(
-
1
,
'编辑ERP单号失败'
);
}
$OrderActionLogModel
->
addLog
(
$order_id
,
$request
->
user
->
userId
,
2
,
'编辑ERP单号,修改前:'
.
$old_erp_sn
);
$this
->
Export
(
0
,
'编辑ERP单号成功'
);
}
...
...
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