更新若干bug
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user