|
@@ -213,6 +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'])){
|
|
|
|
+ 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;
|
|
@@ -378,6 +381,11 @@ class Amazonbarcode extends Start_Controller {
|
|
$j++;
|
|
$j++;
|
|
continue;
|
|
continue;
|
|
}
|
|
}
|
|
|
|
+ if(strlen($post['number'])){
|
|
|
|
+ $ed[] = array($key.' 行,条码超出25位!');
|
|
|
|
+ $j++;
|
|
|
|
+ continue;
|
|
|
|
+ }
|
|
if($post['num'] < 1)
|
|
if($post['num'] < 1)
|
|
{
|
|
{
|
|
$ed[] = array($key.' 行,数量错误!');
|
|
$ed[] = array($key.' 行,数量错误!');
|