|
@@ -53,15 +53,16 @@ class CustomFieldController extends Controller
|
|
|
$nameRuleGroups=NamingRule::query()->get()->pluck('id')->toArray();
|
|
|
$allGroups=config("custom-field.groups");
|
|
|
|
|
|
+
|
|
|
if(!empty($nameRuleGroups)){
|
|
|
$notNameRule=array_diff($allGroups,$nameRuleGroups);
|
|
|
return $this->success([
|
|
|
- $notNameRule
|
|
|
+ 'data' => $notNameRule
|
|
|
]);
|
|
|
}
|
|
|
|
|
|
return $this->success([
|
|
|
- $allGroups
|
|
|
+ 'data'=> $allGroups
|
|
|
]);
|
|
|
}
|
|
|
|