Skip to content

Commit

Permalink
static block status 类型bug处理
Browse files Browse the repository at this point in the history
  • Loading branch information
fancyecommerce committed Apr 9, 2021
1 parent 217f995 commit 07125b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion services/cms/staticblock/StaticBlockMongodb.php
Expand Up @@ -109,7 +109,7 @@ public function save($one)
$primaryVal = new \MongoDB\BSON\ObjectId();
$model->{$this->getPrimaryKey()} = $primaryVal;
}

$one['status'] = (int)$one['status'];
$model->updated_at = time();
unset($one['_id']);
$saveStatus = Yii::$service->helper->ar->save($model, $one);
Expand Down

0 comments on commit 07125b4

Please sign in to comment.