|
@@ -472,7 +472,7 @@ public class MercMiniDeviceController {
|
|
|
|
|
|
@PostMapping("genCodeByAdmin")
|
|
|
@ApiOperation("蓝牙开门-平台管理员生成授权码(通用码)")
|
|
|
- public R<Boolean> genCodeByAdmin(@RequestBody @Validated DeviceBluetoothAuthDto.GenCodeByAdmin dto) {
|
|
|
+ public R<Long> genCodeByAdmin(@RequestBody @Validated DeviceBluetoothAuthDto.GenCodeByAdmin dto) {
|
|
|
|
|
|
long deviceId = YitIdHelper.nextId();
|
|
|
|
|
@@ -482,7 +482,8 @@ public class MercMiniDeviceController {
|
|
|
.setDeviceId(deviceId)
|
|
|
.setMercId(0L)
|
|
|
.setDeviceId(deviceId).setAuthCode(String.valueOf(deviceId));
|
|
|
- return R.ok(deviceBluetoothAuthService.save(saveInfo));
|
|
|
+ deviceBluetoothAuthService.save(saveInfo);
|
|
|
+ return R.ok(deviceId);
|
|
|
}
|
|
|
|
|
|
@PostMapping("verificationBlueCode")
|