更新若干bug

This commit is contained in:
2026-03-11 11:11:10 +08:00
parent 5dffe62adc
commit f134b0e759
6 changed files with 210 additions and 25 deletions
@@ -117,6 +117,18 @@ class TenantDomainController extends BaseController
]);
}
// 检查该租户是否已有域名数据
$hasDomain = TenantDomain::where('tid', $tid)
->where('delete_time', null)
->find();
if ($hasDomain) {
return json([
'code' => 400,
'msg' => '该租户已有域名,请删除后再次申请'
]);
}
if (empty($subDomain)) {
return json([
'code' => 400,