|
@@ -16,11 +16,10 @@ public class CheckVibrationDuration extends Operator {
|
|
|
|
|
|
@Override
|
|
|
public Object executeInner(Object[] list) throws Exception {
|
|
|
- // 参数解析:当前振动值、目标振动值、持续秒数
|
|
|
- int currentVibration = Integer.parseInt((String) list[0]);
|
|
|
+ double currentVibration = Double.parseDouble((String) list[0]);
|
|
|
String symbol = list[1].toString();
|
|
|
- int targetVibration = (int) list[2];
|
|
|
- int durationSeconds = (int) list[3];
|
|
|
+ double targetVibration = (Double) list[2];
|
|
|
+ double durationSeconds = (Double) list[3];
|
|
|
FastDateFormat format = FastDateFormat.getInstance("yyyy-MM-dd HH:mm:ss.SSS");
|
|
|
long firstTimeDefault = DateUtil.parse((String) list[4], format).getTime();
|
|
|
boolean result = false;
|