|
@@ -266,12 +266,19 @@ class Amazonbarcode extends Start_Controller {
|
|
$va = explode(',',rtrim($v,','));
|
|
$va = explode(',',rtrim($v,','));
|
|
$n = $this->input->post('n');
|
|
$n = $this->input->post('n');
|
|
$sl = $this->input->post('sl');
|
|
$sl = $this->input->post('sl');
|
|
|
|
+ $bfb = $this->input->post('bfb');
|
|
|
|
+ if(empty($bfb)){
|
|
|
|
+ $bfb = '58mm';
|
|
|
|
+ }else{
|
|
|
|
+ $bfb = (int)$bfb;
|
|
|
|
+ $bfb = $bfb.'%';
|
|
|
|
+ }
|
|
$text = array();$text['data'] = array();$time = time();
|
|
$text = array();$text['data'] = array();$time = time();
|
|
$data = $this->amazonbarcode->read($va[$n]);
|
|
$data = $this->amazonbarcode->read($va[$n]);
|
|
// if(strlen($data['number']) > 25){
|
|
// if(strlen($data['number']) > 25){
|
|
// echo json_encode(array('msg'=>'打印条码超过25位,系统不支持!','success'=>false));exit;
|
|
// echo json_encode(array('msg'=>'打印条码超过25位,系统不支持!','success'=>false));exit;
|
|
// }
|
|
// }
|
|
- $rows = array('number'=>$data['number'],'label'=>$data['label'],'label2'=>$data['label2'],'num'=>$sl,'data'=>$v,'n'=>$n-1);
|
|
|
|
|
|
+ $rows = array('number'=>$data['number'],'label'=>$data['label'],'label2'=>$data['label2'],'num'=>$sl,'data'=>$v,'n'=>$n-1,'bfb'=>$bfb);
|
|
if($this->amazonbarcode->save(array('print'=>1,'time'=>$time),$data['id']))
|
|
if($this->amazonbarcode->save(array('print'=>1,'time'=>$time),$data['id']))
|
|
{
|
|
{
|
|
echo json_encode(array('rows'=>($rows),'success'=>true));exit;
|
|
echo json_encode(array('rows'=>($rows),'success'=>true));exit;
|