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
4bbb293a7ba2d0c08eac4495f2e68667a06763c9
1 parent
6d7ea3be
修改加价购价格
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
library/Plugin/Helpers.php
yohobuy/m.yohobuy.com/application/models/Index/Cart.php
library/Plugin/Helpers.php
View file @
4bbb293
...
...
@@ -680,7 +680,7 @@ class Helpers
* @param int $count 计商品件数
* @return array $arr 处理之后的加价购商品数据
*/
public
static
function
formatAdvanceGoods
(
$advanceGoods
,
&
$count
=
0
)
public
static
function
formatAdvanceGoods
(
$advanceGoods
,
$isGift
=
false
,
&
$count
=
0
)
{
$arr
=
array
();
...
...
@@ -699,7 +699,7 @@ class Helpers
$oneGoods
[
'name'
]
=
$single
[
'product_name'
];
$oneGoods
[
'thumb'
]
=
!
empty
(
$single
[
'goods_images'
])
?
Images
::
getImageUrl
(
$single
[
'goods_images'
],
120
,
160
)
:
''
;
$oneGoods
[
'price'
]
=
self
::
transPrice
(
$single
[
'last_price'
]);
$oneGoods
[
'marketPrice'
]
=
'0.00'
;
$oneGoods
[
'marketPrice'
]
=
$isGift
?
'0.00'
:
self
::
transPrice
(
$single
[
'market_price'
])
;
$oneGoods
[
'count'
]
=
$single
[
'storage_number'
];
$gift
[
'goods'
][]
=
$oneGoods
;
...
...
yohobuy/m.yohobuy.com/application/models/Index/Cart.php
View file @
4bbb293
...
...
@@ -849,7 +849,7 @@ class CartModel
if
(
$onlyGift
)
{
// 赠品
$result
[
'freebie'
]
=
Helpers
::
formatAdvanceGoods
(
$data
[
'gift_list'
]);
$result
[
'freebie'
]
=
Helpers
::
formatAdvanceGoods
(
$data
[
'gift_list'
]
,
true
);
break
;
}
if
(
$onlyAdvanceBuy
)
{
...
...
Please
register
or
login
to post a comment