Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
SooonerHotel
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
吴贤德
SooonerHotel
Commits
60922f7b
Commit
60922f7b
authored
5 years ago
by
wangjiangze
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
云端片库筛选条件更新
parent
4f30f0be
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
MediaModel.class.php
SooonerHotel/App/Lib/Model/MediaModel.class.php
+6
-0
No files found.
SooonerHotel/App/Lib/Model/MediaModel.class.php
View file @
60922f7b
...
@@ -17,9 +17,15 @@ class MediaModel extends RelationModel{
...
@@ -17,9 +17,15 @@ class MediaModel extends RelationModel{
$searchType
=
$inputs
[
"searchType"
]
?
$inputs
[
"searchType"
]
:
0
;
$searchType
=
$inputs
[
"searchType"
]
?
$inputs
[
"searchType"
]
:
0
;
$searchStatus
=
$inputs
[
"searchStatus"
]
?
$inputs
[
"searchStatus"
]
:
0
;
$searchStatus
=
$inputs
[
"searchStatus"
]
?
$inputs
[
"searchStatus"
]
:
0
;
$model
=
new
Model
();
if
(
$searchSite
){
if
(
$searchSite
){
$where
=
" and mw.site_id=
$searchSite
"
;
$where
=
" and mw.site_id=
$searchSite
"
;
}
}
if
(
$userInfo
[
'sp_ids'
]
&&
$userInfo
[
'grade'
]
>=
3
){
$site_ids
=
$model
->
query
(
"select group_concat(site_id) site_ids from sh_sp where id in("
.
$userInfo
[
'sp_ids'
]
.
")"
);
$where
.=
" and mw.site_id in("
.
$site_ids
[
0
][
'site_ids'
]
.
") "
;
}
if
(
$searchClass
==
2
){
if
(
$searchClass
==
2
){
$where
.=
" and mw.`type`='movie' "
;
$where
.=
" and mw.`type`='movie' "
;
}
else
if
(
$searchClass
==
1
){
}
else
if
(
$searchClass
==
1
){
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment