Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
YOHOBUYWAP
·
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
郝肖肖
8 years ago
Commit
7c620ac6af88f3db2f09dd3ed509ff5604052e68
1 parent
24a2c5a5
有货币参数判断
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
yohobuy/m.yohobuy.com/application/models/Index/Cart.php
yohobuy/m.yohobuy.com/application/models/Index/Cart.php
View file @
7c620ac
...
...
@@ -636,15 +636,15 @@ class CartModel
}
$yohoCoinData
=
[
'totalYohoCoinNum'
=>
intval
(
$orderCompute
[
'total_yoho_coin_num'
]),
'yohoCoin'
=>
Helpers
::
transPrice
(
$orderCompute
[
'yoho_coin'
]),
'useYohoCoin'
=>
Helpers
::
transPrice
(
$orderCompute
[
'use_yoho_coin'
]),
'totalYohoCoinNum'
=>
isset
(
$orderCompute
[
'total_yoho_coin_num'
])
?
intval
(
$orderCompute
[
'total_yoho_coin_num'
])
:
0
,
'yohoCoin'
=>
isset
(
$orderCompute
[
'yoho_coin'
])
?
Helpers
::
transPrice
(
$orderCompute
[
'yoho_coin'
])
:
0
,
'useYohoCoin'
=>
isset
(
$orderCompute
[
'use_yoho_coin'
])
?
Helpers
::
transPrice
(
$orderCompute
[
'use_yoho_coin'
])
:
0
,
'yohoCoinClick'
=>
0
,
'yohoCoinMsg'
=>
''
];
if
(
$yohoCoinData
[
'totalYohoCoinNum'
]
<
100
)
{
$yohoCoinData
[
'yohoCoinMsg'
]
=
"共
{
$yohoCoin
Compute
[
'totalYohoCoinNum'
]}
有币
币,满
100
可用
";
$yohoCoinData
[
'yohoCoinMsg'
]
=
"共
{
$yohoCoin
Data
[
'totalYohoCoinNum'
]}
有货
币,满
100
可用
";
} else if (
$yohoCoinData['useYohoCoin']
> 0 ||
$yohoCoinData['yohoCoin']
> 0) {
$yohoCoinData['yohoCoinMsg']
= '可抵¥' . (
$yohoCoinData['useYohoCoin']
> 0 ?
$yohoCoinData['useYohoCoin']
:
$yohoCoinData['yohoCoin']
);
$yohoCoinData['yohoCoinClick']
= 1;
...
...
Please
register
or
login
to post a comment