提交 bf781d5a 编写于 作者: T Terry

product mongodb 变量类型转换

上级 986824c1
......@@ -509,6 +509,11 @@ class ProductMongodb extends Service implements ProductInterface
$one['category'] = $c;
}
$one['price'] = (float) $one['price'];
$one['cost_price'] = (float) $one['cost_price'];
$one['special_price'] = (float) $one['special_price'];
$one['final_price'] = (float) $one['final_price'];
$saveStatus = Yii::$service->helper->ar->save($model, $one);
$product_id = (string)$model->{$this->getPrimaryKey()};
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册