@@ -68,8 +68,9 @@ |
||
| 68 | 68 | $device->mac_address = $request->input('mac_address'); |
| 69 | 69 | $device->time = $request->input('time'); |
| 70 | 70 | $device->cover_status = $request->input('cover_status'); |
| 71 | - if ($request->input('cover_command') != null) |
|
| 72 | - $device->cover_command = $request->input('cover_command'); |
|
| 71 | + if ($request->input('cover_command') != null) { |
|
| 72 | + $device->cover_command = $request->input('cover_command'); |
|
| 73 | + } |
|
| 73 | 74 | $device->error_msg = $request->input('error_msg'); |
| 74 | 75 | $device->last_network_update_at = Carbon::now(); |
| 75 | 76 | |