Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
Toggle navigation
This project
Loading...
Sign in
hfpp2012
/
vbot
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit b2be8fa4
authored
Jan 18, 2017
by
HanSon
Committed by
GitHub
Jan 18, 2017
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
修复路径不存在时自动创建文件夹 (#4)
* 删除依赖包 * 更新依赖包 * 删除多余 * 修复路径不存在时自动创建文件夹
1 parent
73359cc1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
src/Core/Server.php
src/Core/Server.php
View file @
b2be8fa
...
...
@@ -137,6 +137,10 @@ class Server
$qrCode
=
new
QrCode
(
$url
);
if
(
!
is_dir
(
realpath
(
$this
->
config
[
'tmp'
]))){
mkdir
(
$this
->
config
[
'tmp'
],
0700
,
true
);
}
$file
=
$this
->
config
[
'tmp'
]
.
'qr.png'
;
$qrCode
->
save
(
$file
);
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment