|
@@ -213,9 +213,9 @@ class Amazonbarcode extends Start_Controller {
|
|
{
|
|
{
|
|
echo json_encode(array('msg'=>'此单已打印,无法修改!','success'=>false));exit;
|
|
echo json_encode(array('msg'=>'此单已打印,无法修改!','success'=>false));exit;
|
|
}
|
|
}
|
|
- if(strlen($post['number']) > 25){
|
|
|
|
- echo json_encode(array('msg'=>'条码超出25位无法有效打印!','success'=>false));exit;
|
|
|
|
- }
|
|
|
|
|
|
+// if(strlen($post['number']) > 25){
|
|
|
|
+// echo json_encode(array('msg'=>'条码超出25位无法有效打印!','success'=>false));exit;
|
|
|
|
+// }
|
|
if($this->amazonbarcode->save($post,$id))
|
|
if($this->amazonbarcode->save($post,$id))
|
|
{
|
|
{
|
|
echo json_encode(array('msg'=>'修改成功','success'=>true));exit;
|
|
echo json_encode(array('msg'=>'修改成功','success'=>true));exit;
|
|
@@ -268,9 +268,9 @@ class Amazonbarcode extends Start_Controller {
|
|
$sl = $this->input->post('sl');
|
|
$sl = $this->input->post('sl');
|
|
$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){
|
|
|
|
- echo json_encode(array('msg'=>'打印条码超过25位,系统不支持!','success'=>false));exit;
|
|
|
|
- }
|
|
|
|
|
|
+// if(strlen($data['number']) > 25){
|
|
|
|
+// 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);
|
|
if($this->amazonbarcode->save(array('print'=>1,'time'=>$time),$data['id']))
|
|
if($this->amazonbarcode->save(array('print'=>1,'time'=>$time),$data['id']))
|
|
{
|
|
{
|
|
@@ -385,11 +385,11 @@ class Amazonbarcode extends Start_Controller {
|
|
$j++;
|
|
$j++;
|
|
continue;
|
|
continue;
|
|
}
|
|
}
|
|
- if(strlen($value['0']) > 25){
|
|
|
|
- $ed[] = array($value['0']."--".$key.' 行,条码字符数不可超过25!');
|
|
|
|
- $j++;
|
|
|
|
- continue;
|
|
|
|
- }
|
|
|
|
|
|
+ // if(strlen($value['0']) > 25){
|
|
|
|
+ // $ed[] = array($value['0']."--".$key.' 行,条码字符数不可超过25!');
|
|
|
|
+ // $j++;
|
|
|
|
+ // continue;
|
|
|
|
+ // }
|
|
if($post['num'] < 1)
|
|
if($post['num'] < 1)
|
|
{
|
|
{
|
|
$ed[] = array($key.' 行,数量错误!');
|
|
$ed[] = array($key.' 行,数量错误!');
|