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
d5248f0d
Commit
d5248f0d
authored
Sep 18, 2018
by
liuyuzhen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
购物车提交
parent
6f039897
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
4 deletions
+5
-4
CartService.php
application/models/Business/Cart/CartService.php
+1
-1
GroupSaleService.php
application/models/Business/Goods/GroupSaleService.php
+4
-3
No files found.
application/models/Business/Cart/CartService.php
View file @
d5248f0d
...
@@ -386,7 +386,7 @@ class CartServiceModel extends \Business\AbstractModel{
...
@@ -386,7 +386,7 @@ class CartServiceModel extends \Business\AbstractModel{
\Error\ErrorModel
::
throwException
(
\Error\CodeConfigModel
::
emptyCartGoodsNum
);
\Error\ErrorModel
::
throwException
(
\Error\CodeConfigModel
::
emptyCartGoodsNum
);
}
}
$cartDao
=
\DAO\Cart\CartModel
::
getInstance
(
\Our\DbNameConst
::
masterDBConnectName
);
$cartDao
=
\DAO\Cart\CartModel
::
getInstance
(
\Our\DbNameConst
::
masterDBConnectName
);
$existCart
=
$cartDao
->
find
(
array
(
'goods_id'
=>
$
cart
[
'goods_i
d'
],
'buyer_id'
=>
$memberId
,
'cart_id'
=>
array
(
'neq'
,
$cart
[
'cart_id'
])));
$existCart
=
$cartDao
->
find
(
array
(
'goods_id'
=>
$
data
[
'goodsI
d'
],
'buyer_id'
=>
$memberId
,
'cart_id'
=>
array
(
'neq'
,
$cart
[
'cart_id'
])));
if
(
$existCart
){
if
(
$existCart
){
return
array
(
'existCartFlag'
=>
\Our\ApiConst
::
one
);
return
array
(
'existCartFlag'
=>
\Our\ApiConst
::
one
);
}
}
...
...
application/models/Business/Goods/GroupSaleService.php
View file @
d5248f0d
...
@@ -206,12 +206,13 @@ class GroupSaleServiceModel extends \Business\AbstractModel {
...
@@ -206,12 +206,13 @@ class GroupSaleServiceModel extends \Business\AbstractModel {
$goodsState
[
$key
]
=
$cartObj
[
'goodsState'
];
$goodsState
[
$key
]
=
$cartObj
[
'goodsState'
];
}
}
array_multisort
(
$goodsState
,
SORT_DESC
,
$offlineCarts
);
array_multisort
(
$goodsState
,
SORT_DESC
,
$offlineCarts
);
foreach
(
$offlineCarts
as
$temp
){
foreach
(
$offlineCarts
as
$temp
CartObj
){
array_push
(
$newstoreCarts
,
$temp
);
array_push
(
$newstoreCarts
,
$temp
CartObj
);
}
}
}
}
//
$storeCarts = $newstoreCarts;
$storeCarts
=
$newstoreCarts
;
$store
=
$storeDao
->
get
(
$storeId
,
false
);
$store
=
$storeDao
->
get
(
$storeId
,
false
);
$temp
=
array
();
$temp
[
'storeName'
]
=
$store
[
'store_name'
];
$temp
[
'storeName'
]
=
$store
[
'store_name'
];
$temp
[
'storeId'
]
=
$storeId
;
$temp
[
'storeId'
]
=
$storeId
;
$temp
[
'storeCarts'
]
=
$storeCarts
;
$temp
[
'storeCarts'
]
=
$storeCarts
;
...
...
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