where($id,$data[$id])->count()) { $state = $this->where($id,$data[$id])->strict(false)->update($data); } else { $state = $this->strict(false)->insertGetId($data); } } catch (\Throwable $throwable) { return false; } return $state; } }