fix: 云接口
This commit is contained in:
@@ -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
|
||||||
|
|||||||
@@ -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;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user