Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
M
my-yaf-project
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
chenchuanwen
my-yaf-project
Commits
ea3afd4e
Commit
ea3afd4e
authored
Sep 16, 2018
by
liuyuzhen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
购物车编辑问题
parent
89e31c7b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
0 deletions
+6
-0
CartService.php
application/models/Business/Cart/CartService.php
+4
-0
CodeConfig.php
application/models/Error/CodeConfig.php
+2
-0
No files found.
application/models/Business/Cart/CartService.php
View file @
ea3afd4e
...
...
@@ -91,6 +91,10 @@ class CartServiceModel extends \Business\AbstractModel{
if
(
!
$result
){
\Error\ErrorModel
::
throwException
(
\Error\CodeConfigModel
::
editDelCartFailed
);
}
$updateResult
=
$cartDao
->
update
(
array
(
'gmt_update'
=>
TIMESTAMP
),
array
(
'goods_id'
=>
$cart
[
'goods_id'
],
'buyer_id'
=>
$memberId
));
if
(
!
$updateResult
){
\Error\ErrorModel
::
throwException
(
\Error\CodeConfigModel
::
editCartUploadCartFailed
);
}
$memberStoreCartsKey
=
\Our\NameConst
::
memberStoreCartsPrefix
.
$memberId
.
\Our\NameConst
::
underline
.
$cart
[
'store_id'
];
$cartRedis
->
tableDel
(
$memberStoreCartsKey
);
return
$result
;
...
...
application/models/Error/CodeConfig.php
View file @
ea3afd4e
...
...
@@ -164,6 +164,7 @@ class CodeConfigModel {
const
pBundlingOfflineForOrder
=
50039
;
const
pBundlingNoStorageForOrder
=
50040
;
const
editDelCartFailed
=
50041
;
const
editCartUploadCartFailed
=
50042
;
//订单相关错误码
...
...
@@ -555,6 +556,7 @@ class CodeConfigModel {
self
::
pBundlingOfflineForOrder
=>
'组合销售商品已经下架'
,
self
::
pBundlingNoStorageForOrder
=>
'组合销售商品库存不足'
,
self
::
editDelCartFailed
=>
'编辑购物车时删除数据失败'
,
self
::
editCartUploadCartFailed
=>
'编辑购物车更新购物车时间失败'
,
self
::
addressNotExist
=>
'地址不存在'
,
self
::
emptyAddressId
=>
'地址主键参数不能为空'
,
...
...
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