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
郭成尧
9 years ago
Commit
5ad047ff3ec22612b7f843bbb2fac13ff0a9d61d
1 parent
1eba213f
'图片质量改为70'
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
library/Plugin/Helpers.php
library/Plugin/Images.php
library/Plugin/Helpers.php
View file @
5ad047f
...
...
@@ -65,7 +65,7 @@ class Helpers
*/
public
static
function
getImageUrl
(
$url
,
$width
,
$height
,
$mode
=
2
)
{
return
strtr
(
$url
,
array
(
'{width}'
=>
$width
,
'{height}'
=>
$height
,
'{mode}'
=>
$mode
,
'http://'
=>
'//'
));
return
strtr
(
$url
,
array
(
'{width}'
=>
$width
,
'{height}'
=>
$height
,
'{mode}'
=>
$mode
,
'http://'
=>
'//'
))
.
'/q/70'
;
}
/**
...
...
library/Plugin/Images.php
View file @
5ad047f
...
...
@@ -71,7 +71,7 @@ class Images
if
(
stripos
(
$fileName
,
'http://'
)
!==
0
)
{
$fileName
=
self
::
template
(
$fileName
,
$bucket
,
$mode
);
}
return
strtr
(
$fileName
,
array
(
'{width}'
=>
$width
,
'{height}'
=>
$height
,
'{mode}'
=>
$mode
,
'http://'
=>
'//'
));
return
strtr
(
$fileName
,
array
(
'{width}'
=>
$width
,
'{height}'
=>
$height
,
'{mode}'
=>
$mode
,
'http://'
=>
'//'
))
.
'/q/70'
;
}
/**
...
...
Please
register
or
login
to post a comment