fix: 处理报错not mac address
This commit is contained in:
@@ -46,7 +46,7 @@ public class ClientController extends BaseController {
|
||||
String site = wanFiRedirectParams.getSite();
|
||||
String clientMac = wanFiRedirectParams.getClientMac();
|
||||
if (StringUtils.isBlank(site) || StringUtils.isBlank(clientMac)) {
|
||||
return error("not mac address");
|
||||
// return error("not mac address");
|
||||
}
|
||||
// ResponseEntity<OperationResponseWithoutResult> posts = omadaAuthorizedClientApi.authClient(site, clientMac);
|
||||
// return success(Objects.requireNonNull(posts.getBody()).getMsg());
|
||||
@@ -67,7 +67,7 @@ public class ClientController extends BaseController {
|
||||
String site = wanFiRedirectParams.getSite();
|
||||
String clientMac = wanFiRedirectParams.getClientMac();
|
||||
if (StringUtils.isBlank(site) || StringUtils.isBlank(clientMac)) {
|
||||
return error("not mac address");
|
||||
// return error("not mac address");
|
||||
}
|
||||
// ResponseEntity<OperationResponseWithoutResult> posts = omadaAuthorizedClientApi.cancelAuthClient(site, clientMac);
|
||||
// return success(Objects.requireNonNull(posts.getBody()).getMsg());
|
||||
@@ -83,12 +83,12 @@ public class ClientController extends BaseController {
|
||||
LoginUser<UUser> loginUser = SecurityUtils.getLoginUser();
|
||||
WANFiRedirectParams wanFiRedirectParams = loginUser.getWanFiRedirectParams();
|
||||
if (wanFiRedirectParams == null) {
|
||||
return error("not wanfi redirect params");
|
||||
// return error("not wanfi redirect params");
|
||||
}
|
||||
String site = wanFiRedirectParams.getSite();
|
||||
String clientMac = wanFiRedirectParams.getClientMac();
|
||||
if (StringUtils.isBlank(site) || StringUtils.isBlank(clientMac)) {
|
||||
return error("not mac address");
|
||||
// return error("not mac address");
|
||||
}
|
||||
ResponseEntity<OperationResponseClientDetail> posts = omadaClientApi.getClientDetail(site, clientMac);
|
||||
return success(Objects.requireNonNull(posts.getBody()).getResult());
|
||||
|
||||
Reference in New Issue
Block a user