提交 f8ee78a2 编写于 作者: T Terry

fix bug: appserver product buy_also_buy product_id is empty

上级 6a095768
......@@ -896,6 +896,9 @@ class ProductMysqldb extends Service implements ProductInterface
return [];
}
$select = $filter['select'];
if (!in_array('id', $select)) {
$select[] = 'id';
}
$query = $this->_productModel->find()->asArray();
$query->where($where);
$query->andWhere(['status' => $this->getEnableStatus()]);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册