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
runner
9 years ago
Commit
45ee5483e12e13af010db65439ceca4e5b4517fc
1 parent
8666df3f
consults total release
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
1 deletions
yohobuy/m.yohobuy.com/application/models/Product/Detail.php
yohobuy/m.yohobuy.com/application/models/Product/Detail.php
View file @
45ee548
...
...
@@ -142,7 +142,7 @@ class DetailModel
else
{
// tar modified 201606141155 常見問題恢復
$result
[
'feedbacks'
][
'consults'
]
=
array_slice
(
self
::
getCommonConsults
()[
'commonConsults'
],
0
,
2
);
$result
[
'feedbacks'
][
'consultsNum'
]
=
2
;
// 数字无意义,兼容原来的前端模板代码使用,不能为 0
$result
[
'feedbacks'
][
'consultsNum'
]
=
'0'
;
// 数字无意义,兼容原来的前端模板代码使用,不能为 0
$result
[
'feedbacks'
][
'commonConsults'
]
=
true
;
// 用来标记是否是常见问题的
$result
[
'feedbacks'
][
'consultsUrl'
]
=
Helpers
::
url
(
'/product/detail/consults'
,
array
(
'product_id'
=>
$productId
,
'total'
=>
$result
[
'feedbacks'
][
'consultsNum'
]));
// $result['feedbacks']['consultsUrl'] = Helpers::url('/product/detail/consultform', array('product_id' => $productId));
...
...
Please
register
or
login
to post a comment