Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
YOHOBUYPC
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
2
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
yangyang
9 years ago
Commit
a4c11caa0fd09ca97c7772f32db45cb0e17b997a
1 parent
4bbb293a
save
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
library/Plugin/Helpers.php
yohobuy/m.yohobuy.com/application/models/Index/Cart.php
library/Plugin/Helpers.php
View file @
a4c11ca
...
...
@@ -680,7 +680,7 @@ class Helpers
* @param int $count 计商品件数
* @return array $arr 处理之后的加价购商品数据
*/
public
static
function
formatAdvanceGoods
(
$advanceGoods
,
$isGift
=
false
,
&
$count
=
0
)
public
static
function
formatAdvanceGoods
(
$advanceGoods
,
&
$count
=
0
,
$isGift
=
false
)
{
$arr
=
array
();
...
...
yohobuy/m.yohobuy.com/application/models/Index/Cart.php
View file @
a4c11ca
...
...
@@ -849,7 +849,8 @@ class CartModel
if
(
$onlyGift
)
{
// 赠品
$result
[
'freebie'
]
=
Helpers
::
formatAdvanceGoods
(
$data
[
'gift_list'
],
true
);
$count
=
0
;
$result
[
'freebie'
]
=
Helpers
::
formatAdvanceGoods
(
$data
[
'gift_list'
],
$count
,
true
);
break
;
}
if
(
$onlyAdvanceBuy
)
{
...
...
Please
register
or
login
to post a comment