|
@@ -1137,6 +1137,13 @@ class WebsiteService implements WebsiteServiceInterface
|
|
'name' => $data['name'],
|
|
'name' => $data['name'],
|
|
'web_ids' => $data['web_ids'],
|
|
'web_ids' => $data['web_ids'],
|
|
];
|
|
];
|
|
|
|
+
|
|
|
|
+ //判斷name是不是重复
|
|
|
|
+ $websiteGroupInfo = WebsiteGroup::query()->where('name', $data['name'])->first();
|
|
|
|
+ if (!empty($websiteGroupInfo)) {
|
|
|
|
+ return Result::error("网站标识重复", 0);
|
|
|
|
+ }
|
|
|
|
+
|
|
$result = WebsiteGroup::where($where)->update($insertData);
|
|
$result = WebsiteGroup::where($where)->update($insertData);
|
|
var_dump($result, '------更新');
|
|
var_dump($result, '------更新');
|
|
if (empty($result)) {
|
|
if (empty($result)) {
|