downloadSpeed 兼容 浮点类型 并 转为 int 类型
This commit is contained in:
parent
87e8cfb321
commit
ec2a33d52c
@ -20,6 +20,7 @@ import com.genersoft.iot.vmp.vmanager.bean.WVPResult;
|
||||
import io.swagger.v3.oas.annotations.Operation;
|
||||
import io.swagger.v3.oas.annotations.Parameter;
|
||||
import io.swagger.v3.oas.annotations.tags.Tag;
|
||||
import org.apache.commons.lang3.math.NumberUtils;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
@ -138,7 +139,7 @@ public class GBRecordController {
|
||||
requestMessage.setKey(key);
|
||||
|
||||
|
||||
playService.download(deviceId, channelId, startTime, endTime, Integer.parseInt(downloadSpeed),
|
||||
playService.download(deviceId, channelId, startTime, endTime, NumberUtils.createDouble(downloadSpeed).intValue(),
|
||||
(code, msg, data)->{
|
||||
|
||||
WVPResult<StreamContent> wvpResult = new WVPResult<>();
|
||||
|
Loading…
Reference in New Issue
Block a user