|
@@ -45,7 +45,7 @@ public class TLocationCheckController {
|
|
|
this.adminService = adminService;
|
|
|
}
|
|
|
|
|
|
- @ApiOperation(value = "获取录入的位置信息")
|
|
|
+ @ApiOperation(value = "获取录入的定位信息")
|
|
|
@GetMapping("/getLocInfo")
|
|
|
public ResponseModel<?> getLocInfo(String clientId) {
|
|
|
if (StringUtils.isEmpty(clientId)) {
|
|
@@ -68,7 +68,7 @@ public class TLocationCheckController {
|
|
|
return R.fail("地区信息未录入");
|
|
|
}
|
|
|
|
|
|
- @ApiOperation(value = "根据ip校验clientId设备位置")
|
|
|
+ @ApiOperation(value = "根据ip校验clientId设备定位")
|
|
|
@PostMapping("/ipCheck")
|
|
|
public ResponseModel<?> ipCheck(@RequestParam String clientId, @RequestParam String ip) {
|
|
|
if (StringUtils.isBlank(clientId) || StringUtils.isBlank(ip)) {
|
|
@@ -97,7 +97,7 @@ public class TLocationCheckController {
|
|
|
return R.ok(result);
|
|
|
}
|
|
|
|
|
|
- @ApiOperation(value = "修改录入的位置信息")
|
|
|
+ @ApiOperation(value = "修改录入的定位信息")
|
|
|
@PostMapping("/updateLocInfo")
|
|
|
public ResponseModel<?> updateLocInfo(@RequestBody TLocationCheck locationCheck) {
|
|
|
if (Objects.isNull(locationCheck)) {
|
|
@@ -106,7 +106,7 @@ public class TLocationCheckController {
|
|
|
|
|
|
// 售后部同事修改的信息:姓名,电话,username,clientId,国家
|
|
|
String modUsername = locationCheck.getModUsername();
|
|
|
- if (!("shouhoumi".equals(modUsername)) && !("admin".equals(modUsername))) {
|
|
|
+ if (!("shouhoumi".equals(modUsername)) && !("admin".equals(modUsername)) && !("chenfanghao".equals(modUsername))) {
|
|
|
return R.fail("该账号无权修改");
|
|
|
}
|
|
|
String modName = locationCheck.getModName();
|
|
@@ -149,7 +149,7 @@ public class TLocationCheckController {
|
|
|
}
|
|
|
|
|
|
|
|
|
- @ApiOperation(value = "录入位置信息")
|
|
|
+ @ApiOperation(value = "录入定位信息")
|
|
|
@PostMapping("/inputLocInfo")
|
|
|
public ResponseModel<?> inputLocInfo(@RequestBody TLocationCheck locationCheck) {
|
|
|
if (Objects.isNull(locationCheck)) {
|
|
@@ -173,7 +173,7 @@ public class TLocationCheckController {
|
|
|
return R.fail("此设备信息已录入");
|
|
|
}
|
|
|
|
|
|
- Set<String> allowedUsers = new HashSet<>(Arrays.asList("admin", "sunchao", "huangkantong", "shouhou121", "shouhou369", "shouhou397", "shouhoumi"));
|
|
|
+ Set<String> allowedUsers = new HashSet<>(Arrays.asList("admin", "chenfanghao", "huangkantong", "shouhou121", "shouhou369", "shouhou397", "shouhoumi"));
|
|
|
if (!allowedUsers.contains(username)) {
|
|
|
return R.fail("该账号无权操作");
|
|
|
}
|