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
hf
9 years ago
Commit
17aec46a16faeb637b0342274ee4a960b928ac5e
1 parent
a019858d
code review by hf: merge zhangzhen code to fixes home floor bugs
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
9 deletions
library/Plugin/DataProcess/FloorProcess.php
library/Plugin/DataProcess/FloorProcess.php
View file @
17aec46
...
...
@@ -9,6 +9,7 @@ use Plugin\Helpers;
*/
class
FloorProcess
{
/**
* 频道参数
*
...
...
@@ -34,9 +35,9 @@ class FloorProcess
$build
=
array
();
foreach
(
$data
[
'list'
]
as
$v
)
{
if
(
empty
(
$v
))
{
continue
;
}
if
(
empty
(
$v
))
{
continue
;
}
$fun
=
$v
[
'template_name'
];
if
(
empty
(
$v
[
'data'
])
||
!
is_callable
(
"self::
$fun
"
))
{
...
...
@@ -207,7 +208,7 @@ class FloorProcess
foreach
(
$data
[
'list'
]
as
&
$one
)
{
if
(
isset
(
$one
[
'url'
]))
{
$one
[
'url'
]
=
Helpers
::
getFilterUrl
(
$one
[
'url'
]);
isset
(
self
::
$channel
[
$type
])
&&
$one
[
'url'
]
.=
'?gender='
.
self
::
$channel
[
$type
];
isset
(
self
::
$channel
[
$type
])
&&
$one
[
'url'
]
.=
'?gender='
.
self
::
$channel
[
$type
];
}
$one
[
'img'
]
=
Helpers
::
getImageUrl
(
$one
[
'src'
],
158
,
174
);
unset
(
$one
[
'src'
]);
...
...
@@ -303,11 +304,11 @@ class FloorProcess
unset
(
$one
[
'src'
]);
}
// 区别多张图与一张图
if
(
count
(
$data
[
'big_image'
])
>
1
)
{
$result
[
'big_image'
][
'big_list'
]
=
$data
[
'big_image'
];
unset
(
$data
[
'big_image'
]);
}
// 区别多张图与一张图
if
(
count
(
$data
[
'big_image'
])
>
1
)
{
$result
[
'big_image'
][
'big_list'
]
=
$data
[
'big_image'
];
unset
(
$data
[
'big_image'
]);
}
foreach
(
$data
[
'list'
]
as
$kk
=>
&
$one
)
{
if
(
$kk
==
0
)
{
...
...
Please
register
or
login
to post a comment