Commit d3b75173 authored by 冯超鹏's avatar 冯超鹏

图片

parent aa63ca10
Pipeline #220 canceled with stages
...@@ -18,6 +18,7 @@ class UploadimgController extends Controller ...@@ -18,6 +18,7 @@ class UploadimgController extends Controller
{ {
if ($request->isMethod('post')) { //判断文件是否是 POST的方式上传 if ($request->isMethod('post')) { //判断文件是否是 POST的方式上传
$tmp = $request->file('file'); $tmp = $request->file('file');
$alarm_order_id = $request->input('alarm_order_id');
if (is_null($tmp)){ if (is_null($tmp)){
return $this->jsonErrorData(105,'上传图片不能为空'); return $this->jsonErrorData(105,'上传图片不能为空');
} }
...@@ -34,7 +35,8 @@ class UploadimgController extends Controller ...@@ -34,7 +35,8 @@ class UploadimgController extends Controller
$data = [ $data = [
'code' => 200, 'code' => 200,
'imginfo' =>$tmp, 'imginfo' =>$tmp,
'path' => $path . '/' . $FileName //文件路径 'path' => $path . '/' . $FileName, //文件路径
'alarm_order_id' =>$alarm_order_id
]; ];
return $this->adduserimg($data); return $this->adduserimg($data);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment