localizer
lzq 2025-10-04 11:24:21 +08:00
parent fee617cfe3
commit e3769b129b
1 changed files with 5 additions and 5 deletions

View File

@ -196,7 +196,7 @@ public class DeviceInfoService extends ServiceImpl<DeviceInfoMapper, DeviceInfoE
OrderPagingResult orderPagingResult = orderInfoService.pendingOrder(licensePlate);
if (orderPagingResult == null) {
// 播语音
playVoice(sn, "{}无订单", licensePlate);
playVoice(sn, cid, "{}无订单", licensePlate);
return resBuilder
.put("data", dataBuilder.put("type", 0).build())
.build();
@ -221,7 +221,7 @@ public class DeviceInfoService extends ServiceImpl<DeviceInfoMapper, DeviceInfoE
CheckStatus checkStatus = orderPagingResult.getCheckStatus();
if (deviceCode == DeviceCode.ChuQianZhi && checkStatus == CheckStatus.WeiKanLiao) {
// 播语音
playVoice(sn, "{}未看料", licensePlate);
playVoice(sn, cid, "{}未看料", licensePlate);
return resBuilder
.put("data", dataBuilder.put("type", 0).build())
@ -283,14 +283,14 @@ public class DeviceInfoService extends ServiceImpl<DeviceInfoMapper, DeviceInfoE
String bodyPhoto = data.getString("photoBody");
if (weight == null || weight == 0) {
// 播语音
playVoice(sn, "{}磅重异常,请重新称重", licensePlate);
playVoice(sn, cid, "{}磅重异常,请重新称重", licensePlate);
return resBuilder
.put("data", dataBuilder.build())
.build();
}
if (deviceCode == DeviceCode.Jin) {
// 播语音
playVoice(sn, "{}称重完成,磅重{}吨", licensePlate, weight / 1000);
playVoice(sn, cid, "{}称重完成,磅重{}吨", licensePlate, weight / 1000);
// 开门
open(sn, cid);
orderInfoService.truckComing(new TruckComingOrderParam()
@ -310,7 +310,7 @@ public class DeviceInfoService extends ServiceImpl<DeviceInfoMapper, DeviceInfoE
.setBodyPhoto(bodyPhoto),
0);
// 播语音
playVoice(sn, "{}称重完成,磅重{}吨", licensePlate, weight / 1000);
playVoice(sn, cid, "{}称重完成,磅重{}吨", licensePlate, weight / 1000);
// 开门
open(sn, cid);
} catch (Exception e) {