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

bug 设备提交

parent f4436f9c
Pipeline #60 canceled with stages
......@@ -153,10 +153,6 @@ class DevicesController extends Controller
return $this->jsonErrorData(105, '设备ID不能为空');
}
if ($request->isMethod('post')) {
$validator = Validator::make($request->all(), $this->getValidationRulesupdevice(false));
if ($validator->fails()) {
return response()->json(['errors' => $validator->errors()], 403);
}
$data['dtype'] = $request->input('tid');
foreach ($data as $k => $v) {
if ($k == 'deid') {
......
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