Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
L
laravelzh
Project
Project
Details
Activity
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
冯超鹏
laravelzh
Commits
b9f95152
Commit
b9f95152
authored
Dec 18, 2020
by
Administrator
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' into develop
parents
6c341fa1
d3b75173
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
UploadimgController.php
app/Http/Controllers/UploadimgController.php
+3
-1
No files found.
app/Http/Controllers/UploadimgController.php
View file @
b9f95152
...
...
@@ -18,6 +18,7 @@ class UploadimgController extends Controller
{
if
(
$request
->
isMethod
(
'post'
))
{
//判断文件是否是 POST的方式上传
$tmp
=
$request
->
file
(
'file'
);
$alarm_order_id
=
$request
->
input
(
'alarm_order_id'
);
if
(
is_null
(
$tmp
)){
return
$this
->
jsonErrorData
(
105
,
'上传图片不能为空'
);
}
...
...
@@ -34,7 +35,8 @@ class UploadimgController extends Controller
$data
=
[
'code'
=>
200
,
'imginfo'
=>
$tmp
,
'path'
=>
$path
.
'/'
.
$FileName
//文件路径
'path'
=>
$path
.
'/'
.
$FileName
,
//文件路径
'alarm_order_id'
=>
$alarm_order_id
];
return
$this
->
adduserimg
(
$data
);
}
...
...
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