|
@@ -2262,7 +2262,7 @@ class WebsiteService implements WebsiteServiceInterface
|
|
|
|
|
|
//判斷name是不是重复
|
|
|
$websiteGroupInfo = WebsiteGroup::query()->where('name', $data['name'])->first();
|
|
|
- if (!empty($websiteGroupInfo)) {
|
|
|
+ if (!empty($websiteGroupInfo) && $websiteGroupInfo->id != $data['id']) {
|
|
|
return Result::error("网站标识重复", 0);
|
|
|
}
|
|
|
|