Skip to content

Commit

Permalink
修正类名导入
Browse files Browse the repository at this point in the history
  • Loading branch information
yunwuxin committed Feb 26, 2024
1 parent 99cee09 commit e35f497
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/model/concern/Attribute.php
Expand Up @@ -18,6 +18,7 @@
use Stringable;
use think\db\Raw;
use think\helper\Str;
use think\Model;
use think\model\Relation;

/**
Expand Down Expand Up @@ -234,7 +235,7 @@ public function data(array|object $data, bool $set = false, array $allow = [])
} elseif (is_object($data)) {
$data = get_object_vars($data);
}

// 清空数据
$this->data = [];

Expand Down

0 comments on commit e35f497

Please sign in to comment.