2
0

fix: 云接口

This commit is contained in:
caiyuchao
2025-01-22 15:16:07 +08:00
parent 9d7b44d1dd
commit b7f60a6a08
3 changed files with 8 additions and 5 deletions

View File

@@ -41,7 +41,8 @@ public class AuthFilter implements GlobalFilter, Ordered
@Autowired @Autowired
private RedisService redisService; private RedisService redisService;
private static final String[] feignOmadaUrls = {"system/dashboard/overview", "system/dashboard/page", "schedule/job/run", "system/client/list"}; private static final String[] feignOmadaUrls = {"system/dashboard/overview", "system/dashboard/page", "schedule/job/run",
"system/client/list", "u/order", "u/order/paySuccess", "/payment/aliPay/callback", "/payment/wxPay/callback"};
@Override @Override

View File

@@ -96,7 +96,7 @@ public class WxPayController extends AbstractWxPayApiController {
.domain(wxPayBean.getDomain()) .domain(wxPayBean.getDomain())
.build(); .build();
} }
notifyUrl = apiConfig.getDomain().concat("/payment/aliPay/callback"); notifyUrl = apiConfig.getDomain().concat("/payment/wxPay/callback");
refundNotifyUrl = apiConfig.getDomain().concat("/wxPay/refundNotify"); refundNotifyUrl = apiConfig.getDomain().concat("/wxPay/refundNotify");
return apiConfig; return apiConfig;
} }

View File

@@ -44,19 +44,21 @@ public class OmadaWifiApi extends AbstractOmadaWifiApi {
@Override @Override
public boolean authClient(String siteId, String clientMac) { public boolean authClient(String siteId, String clientMac) {
omadaAuthorizedClientApi.authClient(siteId, clientMac); ResponseEntity<org.wfc.omada.api.hotspot.model.OperationResponseWithoutResult> response = omadaAuthorizedClientApi.authClient(siteId, clientMac);
log.info(Objects.requireNonNull(response.getBody()).getMsg());
return true; return true;
} }
@Override @Override
public boolean cancelAuthClient(String siteId, String clientMac) { public boolean cancelAuthClient(String siteId, String clientMac) {
omadaAuthorizedClientApi.cancelAuthClient(siteId, clientMac); ResponseEntity<org.wfc.omada.api.hotspot.model.OperationResponseWithoutResult> response = omadaAuthorizedClientApi.cancelAuthClient(siteId, clientMac);
log.info(Objects.requireNonNull(response.getBody()).getMsg());
return true; return true;
} }
@Override @Override
public boolean reconnectClient(String siteId, String clientMac) { public boolean reconnectClient(String siteId, String clientMac) {
omadaClientApi.reconnectClient(siteId, clientMac); ResponseEntity<OperationResponseWithoutResult> response = omadaClientApi.reconnectClient(siteId, clientMac);
return false; return false;
} }