Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
W
webman-blog
Project
Project
Details
Activity
Releases
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
魏洲
webman-blog
Commits
60bb2583
Commit
60bb2583
authored
May 19, 2022
by
wolfcode
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
optimize code
parent
8a1a7b02
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
UploadService.php
app/common/service/UploadService.php
+1
-1
InstallCheck.php
app/middleware/InstallCheck.php
+1
-1
No files found.
app/common/service/UploadService.php
View file @
60bb2583
...
...
@@ -77,7 +77,7 @@ class UploadService
$oss_request_url
=
$_rs
[
'oss - request - url'
]
??
''
;
if
(
empty
(
$oss_request_url
))
return
[
'code'
=>
0
,
'data'
=>
'上传至OSS失败'
];
$oss_request_url
=
str_replace
(
'http://'
,
'https://'
,
$oss_request_url
);
}
catch
(
OssException
|
OssException
$e
)
{
}
catch
(
OssException
$e
)
{
return
[
'code'
=>
0
,
'data'
=>
$e
->
getMessage
()];
}
...
...
app/middleware/InstallCheck.php
View file @
60bb2583
...
...
@@ -77,7 +77,7 @@ class InstallCheck implements MiddlewareInterface
mysqli_query
(
$conn
,
$query_sql
);
}
mysqli_close
(
$conn
);
@
touch
(
$
base_path
.
'install.lock'
);
@
touch
(
$
lock_file
);
return
$handler
(
$request
);
}
catch
(
\Exception
$e
)
{
$errorMsg
=
"连接 MySQL 失败: "
.
mysqli_connect_error
()
.
$e
->
getMessage
();
...
...
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