Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
meibuyu-rpc
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
without authentication
meibuyu-rpc
Commits
95a29bbb
Commit
95a29bbb
authored
Dec 26, 2020
by
王源
🎧
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
调整拼图文件名的组成
parent
128cd85a
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
Drawer.php
src/Tools/Drawer.php
+3
-2
No files found.
src/Tools/Drawer.php
View file @
95a29bbb
...
...
@@ -305,9 +305,10 @@ class Drawer
/**
* 拼图
* @param $imgPathList
* @param string $name
* @return bool|string
*/
public
function
mergeImages
(
$imgPathList
)
public
function
mergeImages
(
$imgPathList
,
$name
=
''
)
{
$maxW
=
$maxH
=
0
;
$filenameList
=
[];
...
...
@@ -338,7 +339,7 @@ class Drawer
// 判断路径是否存在,不存在,则创建
mkdir
(
$savePath
,
0777
,
true
);
}
$imgNewPath
=
$savePath
.
'/'
.
$filename
.
'.png'
;
$imgNewPath
=
$savePath
.
'/'
.
(
$name
?:
$filename
)
.
'.png'
;
if
(
file_exists
(
$imgNewPath
))
{
return
$imgNewPath
;
}
...
...
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