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
Plain Diff
Browse Files
Authored by
whb
9 years ago
Commit
9e07e9676a4f2445255efc711ac8481ad28d0a22
2 parents
0fe67fcd
2ffbbc6a
Merge branch 'temp' of
http://git.dev.yoho.cn/web/yohobuy.git
into temp
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
yohobuy/www.yohobuy.com/application/models/Guang/Info.php
yohobuy/www.yohobuy.com/application/models/Guang/Info.php
View file @
9e07e96
...
...
@@ -68,7 +68,7 @@ class InfoModel
*/
public
static
function
formatInfo
(
$article
,
$data
,
$channel
,
$limit
)
{
$result
=
array
();
$result
[
'content'
]
=
$other
=
array
();
//推荐商品列表
$goods
=
$goodsGroup
=
array
();
$result
[
'pathNav'
]
=
self
::
getCenterCrumb
(
$article
[
'article_title'
],
$channel
);
...
...
@@ -93,13 +93,14 @@ class InfoModel
}
elseif
(
$type
===
'goodsGroup'
)
{
$goodsGroup
=
array_merge_recursive
(
$goodsGroup
,
self
::
goodsGroup
(
$con
[
'data'
]));
}
else
{
$result
[
'content'
]
=
is_callable
(
"self::
$type
"
)
?
self
::
$type
(
$con
[
'data'
])
:
''
;
$other
=
is_callable
(
"self::
$type
"
)
?
self
::
$type
(
$con
[
'data'
])
:
''
;
$result
[
'content'
]
=
array_merge_recursive
(
$result
[
'content'
],
$other
);
}
}
}
}
if
(
!
empty
(
$goods
))
{
$result
[
'content'
][
]
=
array
(
'relatedReco'
=>
array
(
'recos'
=>
$goods
)
);
$result
[
'content'
][
'relatedReco'
]
=
array
(
'recos'
=>
$goods
);
}
if
(
!
empty
(
$goodsGroup
))
{
$result
[
'content'
][
'relatedReco'
]
=
$goodsGroup
;
...
...
Please
register
or
login
to post a comment