Commit cdb9fc43 authored by mengweifu's avatar mengweifu

add:ota manage

parent 3d6bbb0b
......@@ -88,7 +88,10 @@ class FeiPrinter extends \Api\PhpServices\Printer\Printer
]);
if ($res['code'] == 0 && isset($res['response'])) {
if ($res['response']['ret'] == 0) {
return $res['response']['data'];
if (is_array($res['response']['data']['ok']) && count($res['response']['data']['ok']) > 0) {
return true;
}
throw new \Exception($res['response']['data']['no'][0]);
}
throw new \Exception($res['response']['msg']);
}
......
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