修复bug
This commit is contained in:
@ -8,6 +8,7 @@ import com.fuyuanshen.app.domain.dto.TextToSpeechRequest;
|
|||||||
import com.fuyuanshen.app.service.AudioProcessService;
|
import com.fuyuanshen.app.service.AudioProcessService;
|
||||||
import com.fuyuanshen.app.service.VideoProcessService;
|
import com.fuyuanshen.app.service.VideoProcessService;
|
||||||
import com.fuyuanshen.common.core.domain.R;
|
import com.fuyuanshen.common.core.domain.R;
|
||||||
|
import com.fuyuanshen.common.core.utils.StringUtils;
|
||||||
import com.fuyuanshen.common.idempotent.annotation.RepeatSubmit;
|
import com.fuyuanshen.common.idempotent.annotation.RepeatSubmit;
|
||||||
import com.fuyuanshen.common.web.core.BaseController;
|
import com.fuyuanshen.common.web.core.BaseController;
|
||||||
import com.fuyuanshen.equipment.domain.vo.AppFileVo;
|
import com.fuyuanshen.equipment.domain.vo.AppFileVo;
|
||||||
@ -100,6 +101,9 @@ public class AppVideoController extends BaseController {
|
|||||||
if (request.getDeviceId() == null) {
|
if (request.getDeviceId() == null) {
|
||||||
return R.fail("设备ID不能为空");
|
return R.fail("设备ID不能为空");
|
||||||
}
|
}
|
||||||
|
if (StringUtils.isBlank(request.getText())) {
|
||||||
|
return R.fail("文本不能为空");
|
||||||
|
}
|
||||||
|
|
||||||
String result = audioProcessService.textToSpeech(
|
String result = audioProcessService.textToSpeech(
|
||||||
request.getDeviceId(),
|
request.getDeviceId(),
|
||||||
|
|||||||
@ -111,7 +111,7 @@ public class RegisEquipReceiverMessageHandler implements MessageHandler {
|
|||||||
log.warn("Device already exists for IMEI: {}", imei);
|
log.warn("Device already exists for IMEI: {}", imei);
|
||||||
String redisKey = GlobalConstants.GLOBAL_REDIS_KEY + DEVICE_KEY_PREFIX +
|
String redisKey = GlobalConstants.GLOBAL_REDIS_KEY + DEVICE_KEY_PREFIX +
|
||||||
imei + ":regis";
|
imei + ":regis";
|
||||||
String value = RedisUtils.getCacheObject(redisKey);
|
Object value = RedisUtils.getCacheObject(redisKey);
|
||||||
if (value != null) {
|
if (value != null) {
|
||||||
log.warn("regis/imei发送次数频率过快: {}", imei);
|
log.warn("regis/imei发送次数频率过快: {}", imei);
|
||||||
return;
|
return;
|
||||||
|
|||||||
Reference in New Issue
Block a user