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
7e60f5ba
Commit
7e60f5ba
authored
Oct 12, 2018
by
liuyuzhen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
组合销售商品不支持加入收藏夹工鞥呢
parent
9f6fe50f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
0 deletions
+5
-0
CartService.php
application/models/Business/Cart/CartService.php
+3
-0
CodeConfig.php
application/models/Error/CodeConfig.php
+2
-0
No files found.
application/models/Business/Cart/CartService.php
View file @
7e60f5ba
...
@@ -513,6 +513,9 @@ class CartServiceModel extends \Business\AbstractModel{
...
@@ -513,6 +513,9 @@ class CartServiceModel extends \Business\AbstractModel{
$cartDao
->
db
->
doTransaction
();
$cartDao
->
db
->
doTransaction
();
$favList
=
array
();
$favList
=
array
();
foreach
(
$cartList
as
$cart
){
foreach
(
$cartList
as
$cart
){
if
(
$cart
[
'type'
]
==
\Our\ApiConst
::
addBundingToCart
){
\Error\ErrorModel
::
throwException
(
\Error\CodeConfigModel
::
pbundingGoodsCannotMoveToFavouites
);
}
$fav
=
array
();
$fav
=
array
();
$fav
[
'member_id'
]
=
$memberId
;
$fav
[
'member_id'
]
=
$memberId
;
if
(
$cart
[
'type'
]
==
\Our\ApiConst
::
addGoodsToCart
){
if
(
$cart
[
'type'
]
==
\Our\ApiConst
::
addGoodsToCart
){
...
...
application/models/Error/CodeConfig.php
View file @
7e60f5ba
...
@@ -168,6 +168,7 @@ class CodeConfigModel {
...
@@ -168,6 +168,7 @@ class CodeConfigModel {
const
editDelCartFailed
=
50041
;
const
editDelCartFailed
=
50041
;
const
editCartUploadCartFailed
=
50042
;
const
editCartUploadCartFailed
=
50042
;
const
wrongAddCartForSelfStore
=
50043
;
const
wrongAddCartForSelfStore
=
50043
;
const
pbundingGoodsCannotMoveToFavouites
=
50044
;
//订单相关错误码
//订单相关错误码
...
@@ -567,6 +568,7 @@ class CodeConfigModel {
...
@@ -567,6 +568,7 @@ class CodeConfigModel {
self
::
editDelCartFailed
=>
'编辑购物车时删除数据失败'
,
self
::
editDelCartFailed
=>
'编辑购物车时删除数据失败'
,
self
::
editCartUploadCartFailed
=>
'编辑购物车更新购物车时间失败'
,
self
::
editCartUploadCartFailed
=>
'编辑购物车更新购物车时间失败'
,
self
::
wrongAddCartForSelfStore
=>
'店主不能添加自己店铺的商品到购物车'
,
self
::
wrongAddCartForSelfStore
=>
'店主不能添加自己店铺的商品到购物车'
,
self
::
pbundingGoodsCannotMoveToFavouites
=>
'组合销售商品暂时不支持移入收藏夹'
,
self
::
addressNotExist
=>
'地址不存在'
,
self
::
addressNotExist
=>
'地址不存在'
,
self
::
emptyAddressId
=>
'地址主键参数不能为空'
,
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