This commit is contained in:
wangchen147
2023-11-30 15:31:08 +08:00
parent f2765e9a1f
commit a95521f6af
32 changed files with 668 additions and 156 deletions

View File

@@ -116,7 +116,7 @@ class Site extends BaseModel
return $this->hasOne(SiteGroup::class, 'group_id', 'group_id')->joinType('left')->withField('group_id, group_name')->bind(['group_name' => 'group_name']);
}
public function addon() {
public function addonName() {
return $this->hasOne(Addon::class, 'key', 'app')->bind(['app_name' => 'title']);
}