|
|
@@ -42,6 +42,7 @@ class Whlabel extends Start_Controller
|
|
|
$this->load->_model("Model_logic_whlabel", "logic_whlabel");
|
|
|
$this->load->_model("Model_logic_order","logic_order");
|
|
|
$this->load->_model("Model_logic_ding","logic_ding");
|
|
|
+ $this->load->_model("Model_logic_u9tools","logic_u9tools");
|
|
|
}
|
|
|
//定义方法的调用规则 获取URI第二段值
|
|
|
public function _remap($arg, $arg_array)
|
|
|
@@ -5722,6 +5723,16 @@ class Whlabel extends Start_Controller
|
|
|
$yyh = $this->whlabellabel->get_label($tmsku);
|
|
|
} else {
|
|
|
$yyh = $this->whlabellabel->get_sku($tmsku);
|
|
|
+ if(empty($yyh)){
|
|
|
+ $r = $this->logic_u9tools->getErpSkuByU9Lp($tmsku);
|
|
|
+ if($r['code'] == -1 ){
|
|
|
+ echo json_encode(array('success' => false));
|
|
|
+ exit;
|
|
|
+ }else{
|
|
|
+ echo json_encode(array('features' => $r['data'], 'success' => true));
|
|
|
+ exit;
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|
|
|
if ($yyh) {
|
|
|
echo json_encode(array('features' => $yyh['features'], 'success' => true));
|