lvhao 3 月之前
父節點
當前提交
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));
 		$res = $this->sendReq($url,$header,json_encode($list));
 		return array($res,$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;
+	}
 
 
 	/**
 	/**
 	 * 创建料品
 	 * 创建料品