diff --git a/app/admin/controller/User.php b/app/admin/controller/User.php index 22c1b10..8674a56 100644 --- a/app/admin/controller/User.php +++ b/app/admin/controller/User.php @@ -99,10 +99,10 @@ class User extends BaseController $data['update_time'] = time(); $data['id'] = $id; if (Db::name('User')->update($data) !== false) { - if ($param['status'] == 0) { - add_log('disable', $param['id'], $param); - } else if ($param['status'] == 1) { - add_log('recovery', $param['id'], $param); + if ($data['status'] == 0) { + add_log('disable', $id, $data); + } else if ($data['status'] == 1) { + add_log('recovery', $id, $data); } return to_assign(); } else {