Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
tl_estate
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
hujun
tl_estate
Commits
655548f6
Commit
655548f6
authored
Sep 07, 2018
by
zhuwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化
parent
44a7656a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
6 deletions
+0
-6
ImageDepotService.php
application/index/service/ImageDepotService.php
+0
-6
No files found.
application/index/service/ImageDepotService.php
View file @
655548f6
...
...
@@ -27,11 +27,9 @@ class ImageDepotService
public
function
getImageWidthRand
(
$img_type
=
0
,
$label
=
'商场美食'
,
$not_in_id
)
{
$params_
[
'img_status'
]
=
0
;
//$map['id']=array('not in','1,2,3');
if
(
!
empty
(
$not_in_id
))
{
$params_
[
'id'
]
=
[
'not in'
,
$not_in_id
];
}
$params_
[
'img_type'
]
=
$img_type
;
if
(
$img_type
==
0
or
$img_type
==
1
)
{
...
...
@@ -42,15 +40,11 @@ class ImageDepotService
}
$result
=
$this
->
imageDepot
->
getImageDepotIDList
(
$params_
);
if
(
!
$result
){
//查询不到相关数据返回''
return
''
;
}
$random_keys
=
array_rand
(
$result
,
1
);
//$img_file_path= CURRENT_URL . 'static/shop_image_depot/' . $result[$random_keys]['id'];
return
$result
[
$random_keys
][
'id'
];
}
...
...
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