Commit fbcd418b authored by mengweifu's avatar mengweifu

update:ota manage

parent cca85da2
......@@ -132,10 +132,10 @@ class OtaService
$data['printer_key'] = $params['printer_key'] ?? '';
$data['label_printer_sn'] = $params['label_printer_sn'] ?? '';
$data['label_printer_key'] = $params['label_printer_key'] ?? '';
$data['longitude'] = $params['longitude'];
$data['latitude'] = $params['latitude'];
$data['location'] = $params['location'];
$data['address'] = $params['address'];
$data['longitude'] = $params['longitude'] ?? 0;
$data['latitude'] = $params['latitude'] ?? 0;
$data['location'] = $params['location'] ?? '';
$data['address'] = $params['address'] ?? '';
return Ota::insert($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