fix: 修复远程接口和更换套餐
This commit is contained in:
@@ -80,8 +80,8 @@ public interface RemoteUUserService
|
|||||||
public R<Boolean> addCdrInfoByOmadaApi();
|
public R<Boolean> addCdrInfoByOmadaApi();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
* 根据设备mac保存或更新设备信息
|
||||||
*/
|
*/
|
||||||
@GetMapping("/client/recordClientUser")
|
@PostMapping("/client/recordClientUser")
|
||||||
public R<Boolean> recordClientUser(@RequestBody UClientBo clientBo);
|
public R<Boolean> recordClientUser(@RequestBody UClientBo clientBo);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -96,6 +96,8 @@ public class UOrderServiceImpl extends ServiceImpl<UOrderMapper, UOrder> impleme
|
|||||||
List<UClient> clients = clientService.list(Wrappers.<UClient>lambdaQuery().eq(UClient::getUserId, order.getUserId()));
|
List<UClient> clients = clientService.list(Wrappers.<UClient>lambdaQuery().eq(UClient::getUserId, order.getUserId()));
|
||||||
for (UClient client : clients) {
|
for (UClient client : clients) {
|
||||||
if (StrUtil.isNotBlank(client.getSiteId())) {
|
if (StrUtil.isNotBlank(client.getSiteId())) {
|
||||||
|
// 先取消授权再重新授权,为了截取时间
|
||||||
|
wifiApi.cancelAuthClient(client.getSiteId(), client.getClientMac());
|
||||||
wifiApi.authClient(client.getSiteId(), client.getClientMac());
|
wifiApi.authClient(client.getSiteId(), client.getClientMac());
|
||||||
|
|
||||||
// 带宽限速
|
// 带宽限速
|
||||||
|
|||||||
Reference in New Issue
Block a user