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
bbbb27ae
Commit
bbbb27ae
authored
Sep 12, 2018
by
hujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
image
parent
6ffa00d3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
JobTask.php
application/task/controller/JobTask.php
+6
-2
No files found.
application/task/controller/JobTask.php
View file @
bbbb27ae
...
...
@@ -118,8 +118,11 @@ class JobTask
$image_data
=
$depot
->
getImageDepotList
(
'img_name'
,
[],
1
,
500
);
$path
=
'./static/shop_image_depot/'
;
foreach
(
$image_data
as
$k
=>
$v
)
{
$image
=
\think\Image
::
open
(
$path
.
$v
[
'img_name'
]);
$image
->
thumb
(
960
,
960
)
->
save
(
$path
.
$v
[
'img_name'
]);
$file_path
=
$path
.
$v
[
'img_name'
];
if
(
file_exists
(
$file_path
))
{
$image
=
\think\Image
::
open
(
$file_path
);
$image
->
thumb
(
900
,
900
)
->
save
(
$file_path
);
}
}
}
}
\ No newline at end of file
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