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

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

View File

@@ -44,19 +44,21 @@ public class OmadaWifiApi extends AbstractOmadaWifiApi {
@Override
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;
}
@Override
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;
}
@Override
public boolean reconnectClient(String siteId, String clientMac) {
omadaClientApi.reconnectClient(siteId, clientMac);
ResponseEntity<OperationResponseWithoutResult> response = omadaClientApi.reconnectClient(siteId, clientMac);
return false;
}