|
|
@@ -252,9 +252,9 @@ class UserLevelServices extends BaseServices
|
|
|
if (($levelOne && $levelOne['id'] != $id) || ($levelThree && $levelThree['id'] != $id)) {
|
|
|
throw new AdminException(400675);
|
|
|
}
|
|
|
- if ($levelTwo && $levelTwo['id'] != $id) {
|
|
|
- throw new AdminException(400676);
|
|
|
- }
|
|
|
+// if ($levelTwo && $levelTwo['id'] != $id) {
|
|
|
+// throw new AdminException(400676);
|
|
|
+// }
|
|
|
if (!$systemUserLevel->update($id, $data)) {
|
|
|
throw new AdminException(100007);
|
|
|
}
|
|
|
@@ -263,9 +263,9 @@ class UserLevelServices extends BaseServices
|
|
|
if ($levelOne || $levelThree) {
|
|
|
throw new AdminException(400675);
|
|
|
}
|
|
|
- if ($levelTwo) {
|
|
|
- throw new AdminException(400676);
|
|
|
- }
|
|
|
+// if ($levelTwo) {
|
|
|
+// throw new AdminException(400676);
|
|
|
+// }
|
|
|
//新增
|
|
|
$data['add_time'] = time();
|
|
|
if (!$systemUserLevel->save($data)) {
|