lvhao 3 дней назад
Родитель
Сommit
af67eda155
1 измененных файлов с 17 добавлено и 0 удалено
  1. 17 0
      core/CoreApp/models/Model_apiyyv1.php

+ 17 - 0
core/CoreApp/models/Model_apiyyv1.php

@@ -440,6 +440,23 @@ class Model_apiyyv1 extends Lin_Model
 		$res = $this->sendReq($url,$header,json_encode($list));
 		return array($res,$list);
 	}
+	/**
+	 * 查询料品
+	 */
+	public function cxLpByJm($jm,$token){
+		$list = [];
+		$list[] =[
+			"ItemMaster"=>[
+				"Code"=>$jm
+			]
+		];
+		$url = '/U9C/webapi/ItemMaster/Query';
+		$url = $this->base_url.$url;
+		$header[] = "Content-Type: application/json";
+        $header[] = "Token: ".$token;
+		$res = $this->sendReq($url,$header,json_encode($list));
+		return $res;
+	}
 
 	/**
 	 * 创建料品