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

Merge branch 'feature_ota_manage' into 'test'

update:ota manage

See merge request bp/goods!50
parents 85363ed9 2721c9fb
......@@ -64,7 +64,7 @@ class OtaValidate extends \Validate\BaseValidate
}
protected function is_label_printer_sn($value){
public function is_label_printer_sn($value){
if( substr($value, 3, 1) != '2' ){
return false;
}
......
......@@ -108,6 +108,9 @@ class FeiPrinter extends \Api\PhpServices\Printer\Printer
if (is_array($res['response']['data']['ok']) && count($res['response']['data']['ok']) > 0) {
return true;
}
if (strpos($res['response']['data']['no'][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