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
4ba7f0de
Commit
4ba7f0de
authored
Sep 02, 2018
by
liuyuzhen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
购物车编辑提示店铺关闭问题
parent
588e0d1b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
3 deletions
+1
-3
CartService.php
application/models/Business/Cart/CartService.php
+1
-3
No files found.
application/models/Business/Cart/CartService.php
View file @
4ba7f0de
...
@@ -58,8 +58,6 @@ class CartServiceModel extends \Business\AbstractModel{
...
@@ -58,8 +58,6 @@ class CartServiceModel extends \Business\AbstractModel{
$validReturnData
=
$this
->
validEditCart
(
$data
,
$cart
,
$memberId
,
$pBundlind
);
$validReturnData
=
$this
->
validEditCart
(
$data
,
$cart
,
$memberId
,
$pBundlind
);
$cartDao
=
\DAO\Cart\CartModel
::
getInstance
(
\Our\DbNameConst
::
masterDBConnectName
);
$cartDao
=
\DAO\Cart\CartModel
::
getInstance
(
\Our\DbNameConst
::
masterDBConnectName
);
$cartArray
=
$this
->
getFormattedCartDataForEdit
(
$data
,
$cart
,
$memberId
,
$pBundlind
,
$validReturnData
);
$cartArray
=
$this
->
getFormattedCartDataForEdit
(
$data
,
$cart
,
$memberId
,
$pBundlind
,
$validReturnData
);
var_dump
(
$cartArray
);
return
$cartArray
;
$result
=
$cartDao
->
update
(
$cartArray
[
'newCarts'
][
0
],
array
(
'cart_id'
=>
$data
[
'cartId'
]));
$result
=
$cartDao
->
update
(
$cartArray
[
'newCarts'
][
0
],
array
(
'cart_id'
=>
$data
[
'cartId'
]));
if
(
!
$result
){
if
(
!
$result
){
\Error\ErrorModel
::
throwException
(
\Error\CodeConfigModel
::
editCartFailed
);
\Error\ErrorModel
::
throwException
(
\Error\CodeConfigModel
::
editCartFailed
);
...
@@ -161,7 +159,7 @@ class CartServiceModel extends \Business\AbstractModel{
...
@@ -161,7 +159,7 @@ class CartServiceModel extends \Business\AbstractModel{
}
else
if
(
$cart
[
'type'
]
==
\Our\ApiConst
::
addBundingToCart
){
}
else
if
(
$cart
[
'type'
]
==
\Our\ApiConst
::
addBundingToCart
){
$newCart
=
$this
->
getPBundlingGoodsCartData
(
$data
[
'goodsNum'
],
$memberId
,
$pBundling
);
$newCart
=
$this
->
getPBundlingGoodsCartData
(
$data
[
'goodsNum'
],
$memberId
,
$pBundling
);
}
}
return
array
(
'cart'
=>
$newCart
)
;
return
$newCart
;
}
}
...
...
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