💎一站式轻松地调用各大LLM模型接口,支持GPT4、智谱、星火、月之暗面及文生图 广告
### 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 ***** ### 租户添加自定义字段 过期时间![](https://img.kancloud.cn/cc/08/cc083d698aa11ba28e4ae1e5f8d650ba_846x571.png) cron命令定时检查 ![](https://img.kancloud.cn/d6/4a/d64a79cc2dfaa2cfafb92367c2f0927b_1074x472.png) ***** ### oss,s3 文件放置