提交 d8910c61 编写于 作者: T Terry

产品id得到category id

上级 8b087136
......@@ -677,6 +677,9 @@ class ProductMysqldb extends Service implements ProductInterface
public function getCategoryIdsByProductId($product_id)
{
if (empty($product_id)) {
return [];
}
$coll = $this->_categoryProductModel->find()
->asArray()
->where([
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册