This commit is contained in:
2021-04-27 18:35:38 +08:00
parent a49e9614ab
commit 2398f34631
+4 -4
View File
@@ -309,12 +309,12 @@ class ActiveRecord extends BaseActiveRecord
$lists = $this->getAnnotation(self::GET);
foreach ($lists as $key => $item) {
$data[$key] = $this->{$item}($data[$key] ?? null);
$data[$key] = call_user_func([$this, $item], $data[$key] ?? null);
}
$data = array_merge($data, $this->runRelate());
return array_merge($data, $this->runRelate());
$class = Snowflake::app()->getChannel();
$class->push($this, static::class);
// $class = Snowflake::app()->getChannel();
// $class->push($this, static::class);
return $data;
}