mirror of
https://gitee.com/apiadmin/ApiAdmin.git
synced 2025-04-05 05:42:45 +08:00
modified 完成字段功能移植
This commit is contained in:
parent
b363957b52
commit
9beef9477b
@ -191,7 +191,8 @@ class Fields extends Base {
|
||||
$addArr = array_diff($newArr, $oldArr);
|
||||
$delArr = array_diff($oldArr, $newArr);
|
||||
if ($delArr) {
|
||||
AdminFields::destroy(['show_name' => ['in', $delArr]]);
|
||||
$delArr = array_values($delArr);
|
||||
(new AdminFields())->whereIn('show_name', $delArr)->delete();
|
||||
}
|
||||
if ($addArr) {
|
||||
$addData = [];
|
||||
|
Loading…
x
Reference in New Issue
Block a user