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
Rock Zhang
9 years ago
Commit
c45812ae0f63222d3687ad659144e06ecb8bf9ca
1 parent
5b07966f
修复php版本导致的函数不兼容的bug
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 @
c45812a
...
...
@@ -162,7 +162,7 @@ class UserModel
$product
[
'price'
]
=
'¥'
.
$val
[
'market_price'
];
$product
[
'discountPrice'
]
=
'¥'
.
$val
[
'sales_price'
];
$product
[
'savePrice'
]
=
(
$val
[
'market_price'
]
-
$val
[
'sales_price'
]
>
0
)
?
'¥'
.
(
$val
[
'market_price'
]
-
$val
[
'sales_price'
])
:
false
;
$product
[
'sellOut'
]
=
boolval
(
$val
[
'price_down'
]);
$product
[
'sellOut'
]
=
(
bool
)
(
$val
[
'price_down'
]);
$result
[]
=
$product
;
}
...
...
@@ -432,7 +432,7 @@ class UserModel
$one
[
'imgUrl'
]
=
Helpers
::
getImageUrl
(
$val
[
'cover_image'
],
640
,
240
);
$one
[
'title'
]
=
$val
[
'filter_content'
];
$one
[
'content'
]
=
$val
[
'reply_content'
];
$one
[
'good'
]
=
boolval
(
$val
[
'is_reliable'
]);
$one
[
'good'
]
=
(
bool
)
(
$val
[
'is_reliable'
]);
$one
[
'bad'
]
=
!
$one
[
'good'
];
$result
[]
=
$one
;
...
...
Please
register
or
login
to post a comment