Commit 68705a40 by hcy001

1

parent 1c8052b5
Showing with 11 additions and 6 deletions
......@@ -21,18 +21,23 @@ class SearchModel
/*
* 批量获取spu+品牌分类信息
*@param json $data eg: [{"spu_name":"RCP0603W110RGS3","brand_name":"vishay"}]
*
*
* 返回:
*Array
(
[RCP0603W110RGS3#VISHAY] => Array // (大写(型号名称)#品牌)
(
[class_id2] => 13803
[class_id2_name] => 片式电阻器 - 表面贴装
)
)
*
* 调用例子:
* $param = [
["spu_name"=>"RCP0603W110RGS3","brand_name"=>"vishay"]
];
$res = (new SearchModel())->getClassName(json_encode($param));
print_r($res);
*
*
* 返回:
* {"code":0,"msg":"查询成功","data":{"RCP0603W110RGS3#VISHAY":{"class_id2":13803,"class_id2_name":"片式电阻器 - 表面贴装"}}}
*
*/
public function getClassName($data){
$param = ["data"=>$data];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment