Skip to content

Commit

Permalink
小问题处理
Browse files Browse the repository at this point in the history
  • Loading branch information
root authored and root committed Apr 11, 2017
1 parent d684555 commit ffe4c68
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions services/product/ProductMongodb.php
Original file line number Diff line number Diff line change
Expand Up @@ -156,8 +156,7 @@ public function save($one,$originUrlKey='catalog/product/index'){
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))
Expand Down

0 comments on commit ffe4c68

Please sign in to comment.