提交 ffe4c683 编写于 作者: R root

小问题处理

上级 d6845559
......@@ -156,8 +156,7 @@ class ProductMongodb implements ProductInterface
Yii::$service->helper->errors->add('Product '.$this->getPrimaryKey().' is not exist');
return;
}
echo new \MongoDB\BSON\ObjectId($primaryVal);
exit;
#验证sku 是否重复
$product_one = Product::find()->asArray()->where([
'<>',$this->getPrimaryKey(),(new \MongoDB\BSON\ObjectId($primaryVal))
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册