fix: 处理报错not mac address
This commit is contained in:
1 parent
5e353cf7fd
commit
7d46e96bfa
1 file changed
+4
-4
@@ -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