saveAll($param); if ($info) return show(true, '保存成功'); return show(false, '保存失败,请重试'); } public function delByRoleId(int $roleId):array { $info = $this->where('role_id', $roleId)->where('delete_time', 0)->update(['delete_time' => time()]); if ($info) return show(true, '保存成功'); return show(false, '保存失败,请重试'); } }