|
@@ -579,7 +579,23 @@ class Whlabelfz extends Start_Controller
|
|
|
$yyh = $this->whlabellabel->get_sku($tmsku);
|
|
$yyh = $this->whlabellabel->get_sku($tmsku);
|
|
|
}
|
|
}
|
|
|
if(!empty($yyh)){
|
|
if(!empty($yyh)){
|
|
|
- return ['code'=>1,'msg'=>"获取标签",'data'=>$yyh];
|
|
|
|
|
|
|
+ return ['code'=>1,'msg'=>"获取标签",'data'=>[
|
|
|
|
|
+ 'sku_shop_id' => 0,
|
|
|
|
|
+ 'sku_master_id' => 0,
|
|
|
|
|
+ 'status' => 0,
|
|
|
|
|
+ 'shop' =>0,
|
|
|
|
|
+ 'purchase' => $yyh['purchase'],
|
|
|
|
|
+ 'warehouse' => $yyh['warehouse'],
|
|
|
|
|
+ 'cpbz' => $yyh['cpbz'],
|
|
|
|
|
+ 'title' => $yyh['title'],
|
|
|
|
|
+ 'number' => $yyh['number'],
|
|
|
|
|
+ 'features' => $yyh['features'],
|
|
|
|
|
+ 'featurespp' => $yyh['featurespp'],
|
|
|
|
|
+ 'time' => time(),
|
|
|
|
|
+ 'dynum' => $info['1'],
|
|
|
|
|
+ 'sku' => $info['sku'],
|
|
|
|
|
+ 'label' => time() . rand(0, 9).$i
|
|
|
|
|
+ ]];
|
|
|
}
|
|
}
|
|
|
$r = $this->logic_u9tools->getErpSkuByU9Lp($tmsku);
|
|
$r = $this->logic_u9tools->getErpSkuByU9Lp($tmsku);
|
|
|
if($r['code'] == -1 ){
|
|
if($r['code'] == -1 ){
|
|
@@ -697,7 +713,7 @@ class Whlabelfz extends Start_Controller
|
|
|
$time = time();
|
|
$time = time();
|
|
|
$insert_arr['title'] = rtrim($title, ' ');
|
|
$insert_arr['title'] = rtrim($title, ' ');
|
|
|
$insert_arr['number'] = $number;
|
|
$insert_arr['number'] = $number;
|
|
|
- $insert_arr['features'] = rtrim($features, '-');
|
|
|
|
|
|
|
+ $insert_arr['features'] = "-".trim($features, '-')."-";
|
|
|
|
|
|
|
|
$featurespp = str_replace(array('-163-', '-164-', '-165-', '-166-'), '-', $features);
|
|
$featurespp = str_replace(array('-163-', '-164-', '-165-', '-166-'), '-', $features);
|
|
|
$featurespp = explode('-', trim($featurespp, '-'));
|
|
$featurespp = explode('-', trim($featurespp, '-'));
|
|
@@ -709,7 +725,6 @@ class Whlabelfz extends Start_Controller
|
|
|
$insert_arr['time'] = $time;
|
|
$insert_arr['time'] = $time;
|
|
|
|
|
|
|
|
$insert_arr['dynum'] = $info['1'];
|
|
$insert_arr['dynum'] = $info['1'];
|
|
|
- $title = $features = "";
|
|
|
|
|
$scsku = implode("-", $scsku);
|
|
$scsku = implode("-", $scsku);
|
|
|
$zh = implode(" ", $pm);
|
|
$zh = implode(" ", $pm);
|
|
|
$scsku = str_replace('- ', '-', trim($scsku, '-'));
|
|
$scsku = str_replace('- ', '-', trim($scsku, '-'));
|
|
@@ -719,9 +734,13 @@ class Whlabelfz extends Start_Controller
|
|
|
$label = time() . rand(0, 9).$i;
|
|
$label = time() . rand(0, 9).$i;
|
|
|
$insert_arr['label'] = $label;
|
|
$insert_arr['label'] = $label;
|
|
|
echo "<pre>";
|
|
echo "<pre>";
|
|
|
- print_r($post);
|
|
|
|
|
print_r($insert_arr);
|
|
print_r($insert_arr);
|
|
|
die;
|
|
die;
|
|
|
|
|
+ return [
|
|
|
|
|
+ 'code'=>1,
|
|
|
|
|
+ 'msg'=>"success",
|
|
|
|
|
+ 'data'=>$insert_arr
|
|
|
|
|
+ ];
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
private function _bqplprint(){
|
|
private function _bqplprint(){
|