Commit b9f95152 authored by Administrator's avatar Administrator

Merge branch 'master' into develop

parents 6c341fa1 d3b75173
...@@ -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