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
2015-12-22 00:56:16 +0800
Commit
e27e02aa6b877d3ed421538383b4e443126a37fc
1 parent
4028a0e1
修复购物车中价格又小数时的bug
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
1 deletions
library/Plugin/Helpers.php
library/Plugin/Helpers.php
View file @
e27e02a
...
...
@@ -191,7 +191,7 @@ class Helpers
*/
public
static
function
transPrice
(
$price
)
{
return
(
!
empty
(
$price
)
&&
!
is_float
(
$price
))
?
$price
.
'.00'
:
number_format
(
$price
,
2
,
'.'
,
''
);
return
number_format
(
$price
,
2
,
'.'
,
''
);
}
/**
...
...
Please
register
or
login
to post a comment