mirror of
https://gitee.com/apiadmin/ApiAdmin.git
synced 2025-04-05 19:41:43 +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);
|
$addArr = array_diff($newArr, $oldArr);
|
||||||
$delArr = array_diff($oldArr, $newArr);
|
$delArr = array_diff($oldArr, $newArr);
|
||||||
if ($delArr) {
|
if ($delArr) {
|
||||||
AdminFields::destroy(['show_name' => ['in', $delArr]]);
|
$delArr = array_values($delArr);
|
||||||
|
(new AdminFields())->whereIn('show_name', $delArr)->delete();
|
||||||
}
|
}
|
||||||
if ($addArr) {
|
if ($addArr) {
|
||||||
$addData = [];
|
$addData = [];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user