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
Plain Diff
Browse Files
Authored by
梁志锋
9 years ago
Commit
484b81f3c11a4e9d7480d8918ce2c98f62068ebf
2 parents
5c908b73
d648cddb
Merge branch 'develop' of
http://git.dev.yoho.cn/web/yohobuy
into develop
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
yohobuy/m.yohobuy.com/application/models/Index/User.php
yohobuy/m.yohobuy.com/application/models/Index/User.php
View file @
484b81f
...
...
@@ -314,8 +314,8 @@ class UserModel
foreach
(
$data
as
&
$val
)
{
$val
[
'link'
]
=
isset
(
$val
[
'goodsId'
])
?
Helpers
::
url
(
'/product/pro_'
.
$val
[
'product_skn'
]
.
'_'
.
$val
[
'goodsId'
]
.
'/'
.
$val
[
'cnAlphabet'
]
.
'.html'
)
:
''
;
$val
[
'image'
]
=
!
empty
(
$val
[
'image'
])
?
Helpers
::
getImageUrl
(
$val
[
'image'
],
447
,
596
)
:
''
;
$val
[
'sales_price'
]
=
(
!
empty
(
$val
[
'sales_price'
])
&&
!
is_float
(
$val
[
'sales_price'
]))
?
$val
[
'sales_price'
]
.
'.00'
:
0
;
$val
[
'market_price'
]
=
((
$val
[
'market_price'
]
-
$val
[
'sales_price'
]
>
0
)
&&
!
is_float
(
$val
[
'market_price'
]))
?
$val
[
'market_price'
]
.
'.00'
:
false
;
$val
[
'sales_price'
]
=
(
!
empty
(
$val
[
'sales_price'
])
&&
!
is_float
(
$val
[
'sales_price'
]))
?
$val
[
'sales_price'
]
.
'.00'
:
$val
[
'sales_price'
];
$val
[
'market_price'
]
=
(
$val
[
'market_price'
]
-
$val
[
'sales_price'
]
>
0
)
?
$val
[
'market_price'
]
.
'.00'
:
false
;
}
!
empty
(
$data
)
&&
$result
[
'browseRecord'
]
=
$data
;
}
...
...
Please
register
or
login
to post a comment