|
|
@@ -6,6 +6,7 @@ class Weight extends Start_Controller {
|
|
|
$this->load->_model('Model_weight','weight');
|
|
|
$this->load->_model('Model_typeclass','typeclass');
|
|
|
$this->load->_model('Model_excel','excel');
|
|
|
+ $this->load->_model("Model_logic_whlabel","logic_whlabel");
|
|
|
}
|
|
|
//定义方法的调用规则 获取URI第二段值
|
|
|
public function _remap($arg,$arg_array)
|
|
|
@@ -294,7 +295,7 @@ class Weight extends Start_Controller {
|
|
|
if($category == 130 || $category == 133 || $category == 1702)
|
|
|
{
|
|
|
$list['items'] = $this->input->post('items',true);
|
|
|
- $list['weight'] = $this->input->post('weight',true);
|
|
|
+ $list['weight1'] = $this->input->post('weight1',true);
|
|
|
}
|
|
|
if($category == 1702)
|
|
|
{
|
|
|
@@ -535,7 +536,19 @@ class Weight extends Start_Controller {
|
|
|
{
|
|
|
$weight = $data['weight'];
|
|
|
}
|
|
|
- echo json_encode(array('weight'=>$weight,'success'=>true));
|
|
|
+ //echo json_encode(array('weight'=>$weight,'success'=>true));
|
|
|
+ $do_trans_pms = [
|
|
|
+ [
|
|
|
+ 'features'=>"-".implode("-",$listarray)."-",
|
|
|
+ ]
|
|
|
+ ];
|
|
|
+ $pm = "";
|
|
|
+ $tmp_pm_res = $this->logic_whlabel->dataTran($do_trans_pms,['pm']);
|
|
|
+ if(isset($tmp_pm_res[0])&&isset($tmp_pm_res[0]['pm'])){
|
|
|
+ $pm = $tmp_pm_res[0]['pm'];
|
|
|
+ }
|
|
|
+
|
|
|
+ echo json_encode(array('weight'=>$weight,'success'=>true,'pm'=>$pm));
|
|
|
}
|
|
|
}
|
|
|
|