|
@@ -121,7 +121,11 @@ public class TLocationCheckController {
|
|
|
|
|
|
// 售后部同事修改的信息:姓名,电话,username,clientId,国家
|
|
|
String modUsername = locationCheck.getModUsername();
|
|
|
- if (!("shouhoumi".equals(modUsername)) && !("admin".equals(modUsername)) && !("chenfanghao".equals(modUsername))) {
|
|
|
+// if (!("shouhoumi".equals(modUsername)) && !("admin".equals(modUsername)) && !("chenfanghao".equals(modUsername)) && !("ethan".equals(modUsername))) {
|
|
|
+// return R.fail("该账号无权修改");
|
|
|
+// }
|
|
|
+ Set<String> allowedUsernames = new HashSet<>(Arrays.asList("shouhoumi", "admin", "chenfanghao", "ethan"));
|
|
|
+ if (!allowedUsernames.contains(modUsername)) {
|
|
|
return R.fail("该账号无权修改");
|
|
|
}
|
|
|
String modName = locationCheck.getModName();
|
|
@@ -182,7 +186,7 @@ public class TLocationCheckController {
|
|
|
return R.fail("此设备信息已录入");
|
|
|
}
|
|
|
|
|
|
- Set<String> allowedUsers = new HashSet<>(Arrays.asList("admin", "chenfanghao", "huangkantong", "shouhou121", "shouhou369", "shouhou397", "shouhoumi"));
|
|
|
+ Set<String> allowedUsers = new HashSet<>(Arrays.asList("admin", "chenfanghao", "huangkantong", "shouhou121", "shouhou369", "shouhou397", "shouhoumi", "zhl123", "ethan"));
|
|
|
if (!allowedUsers.contains(username)) {
|
|
|
return R.fail("该账号无权操作");
|
|
|
}
|