提交 24218c22 编写于 作者: T Terry

分类产品部分

上级 9583ce73
......@@ -112,7 +112,8 @@ class Product extends Service
if (isset($one['product_id']) && $one['product_id']) {
$product_id = (string)$one['product_id'];
} else {
$product_id = (string)$one['_id'];
$productPrimaryKey = Yii::$service->product->getPrimaryKey();
$product_id = (string)$one[$productPrimaryKey];
}
$arr[] = [
'name' => $name,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册