Commit ee9d9ac1 authored by 孟维甫's avatar 孟维甫

Merge branch 'feature_ota_manage' into 'test'

add:ota manage

See merge request bp/goods!41
parents e0d88d2b cdb9fc43
......@@ -105,7 +105,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