### 1,Central基礎配置?
app/Central/Forms/AdminSetting.php
\app\\Admin\\Actions\\ClearCache.php
\app\\Admin\\Actions\\ShowCurrentAdminUser.php
*****
### 3,檢查租戶過期命令 - maintenance_mode
app/Console/Commands/CheckTenantIsExpired.php
*****
### 中心管理員直接進入租戶后臺:
UserImpersonation
```
public function handle(Request $request)
{
$domain = Domain::where('tenant_id', $this->getKey())->value('domain');
$token = tenancy()->impersonate(Tenant::find($this->getKey()), 1, '/admin', 'admin');
$url = (config('admin.https') ? 'https' : 'http').'://'.$domain.'/admin/god/'.$token->token;
// 為了從新窗口打開,以及適配iframe-tab擴展, 這里使用js進行處理, 而不是直接跳轉.
return $this->response()->html($url)->success('正在跳轉,請稍后');
}
```
*****
### 解決跳轉bug
*****
### 租戶添加自定義字段
過期時間
cron命令定時檢查

*****
### oss,s3 文件放置