Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
YOHO-ACTIVITY-PHP
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
Rock Zhang
9 years ago
Commit
896d31f04e8dc19a0f5f5c501f072f962233dfd5
1 parent
90c56c36
修复收藏的商品中的判断相对收藏时下降的价格处理的bug
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
framework
yohobuy/m.yohobuy.com/application/models/Index/User.php
framework
@
e9d066dd
Subproject commit
75bbc3b075de19f239532f60c5995d06c5f814e2
Subproject commit
e9d066dd88a8e7e37103021c427a205a5cfcdcec
...
...
yohobuy/m.yohobuy.com/application/models/Index/User.php
View file @
896d31f
...
...
@@ -182,7 +182,7 @@ class UserModel
$product
[
'title'
]
=
$val
[
'product_name'
];
$product
[
'price'
]
=
!
empty
(
$val
[
'market_price'
])
?
'¥'
.
$val
[
'market_price'
]
.
'.00'
:
0
;
$product
[
'discountPrice'
]
=
(
$val
[
'market_price'
]
-
$val
[
'sales_price'
]
>
0
)
?
'¥'
.
$val
[
'sales_price'
]
.
'.00'
:
false
;
$product
[
'savePrice'
]
=
!
empty
(
$val
[
'price_down'
]
>
0
)
?
'¥'
.
$val
[
'price_down'
]
.
'.00'
:
false
;
$product
[
'savePrice'
]
=
(
$val
[
'price_down'
]
>
0
)
?
'¥'
.
$val
[
'price_down'
]
.
'.00'
:
false
;
$product
[
'sellOut'
]
=
(
$val
[
'storage'
]
<=
0
);
$datas
[]
=
$product
;
...
...
Please
register
or
login
to post a comment