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
周少峰
9 years ago
Commit
847977acd41cbbfdf1566d384af512dbcd05197f
1 parent
57c499f7
product default cover
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
library/WebPlugin/HelperSearch.php
library/WebPlugin/HelperSearch.php
View file @
847977a
...
...
@@ -237,19 +237,24 @@ class HelperSearch
continue
;
}
//男封
if
(
isset
(
$v
[
'cover_1'
])
&&
!
empty
(
$v
[
'cover_1'
])
&&
$gender
==
1
)
{
if
(
isset
(
$v
[
'cover_1'
])
&&
!
empty
(
$v
[
'cover_1'
])
&&
empty
(
$cover
)
&&
$gender
==
1
)
{
$cover
=
$v
[
'cover_1'
];
$defaultGood
=
$v
[
'goods_id'
];
// break;
}
//女封
if
(
isset
(
$v
[
'cover_2'
])
&&
!
empty
(
$v
[
'cover_2'
])
&&
$gender
==
2
)
{
if
(
isset
(
$v
[
'cover_2'
])
&&
!
empty
(
$v
[
'cover_2'
])
&&
empty
(
$cover
)
&&
$gender
==
2
)
{
$cover
=
$v
[
'cover_2'
];
$defaultGood
=
$v
[
'goods_id'
];
// break;
}
//默认
if
(
isset
(
$v
[
'is_default'
])
&&
$v
[
'is_default'
]
==
'Y'
)
{
if
(
isset
(
$v
[
'cover_1'
])
&&
!
empty
(
$v
[
'cover_1'
])
&&
$gender
==
1
)
{
$cover
=
$v
[
'cover_1'
];
}
elseif
(
isset
(
$v
[
'cover_2'
])
&&
!
empty
(
$v
[
'cover_2'
])
&&
$gender
==
2
)
{
$cover
=
$v
[
'cover_2'
];
}
$skcPic
=
$v
[
'images_url'
];
$defaultGood
=
$v
[
'goods_id'
];
}
...
...
Please
register
or
login
to post a comment