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