Commit afe500ee authored by hangjun83's avatar hangjun83

百化接口

parent 3554aab1
...@@ -30,7 +30,7 @@ class BhuaProductRepositoryEloquent extends BaseRepository implements BhuaProduc ...@@ -30,7 +30,7 @@ class BhuaProductRepositoryEloquent extends BaseRepository implements BhuaProduc
*/ */
public function getProductByPcode($pCode) public function getProductByPcode($pCode)
{ {
$productsModel = $this; $productsModel = BhuaProducts::query();
if(!is_array($pCode)){ if(!is_array($pCode)){
$productsModel->where('products.p_code',$pCode); $productsModel->where('products.p_code',$pCode);
}else{ }else{
......
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 to comment