feat:校准时间改为收到应答直接使用系统时间
This commit is contained in:
parent
ef46fb8860
commit
e6b6672ceb
@ -86,8 +86,11 @@ class LockTimeLogic extends BaseGetXController {
|
|||||||
switch (status) {
|
switch (status) {
|
||||||
case 0x00:
|
case 0x00:
|
||||||
//成功
|
//成功
|
||||||
final String dataEime =
|
// final String dataEime =
|
||||||
DateTool().dateToYMDHNString('${state.serverTime}');
|
// DateTool().dateToYMDHNString('${state.serverTime}');
|
||||||
|
|
||||||
|
final String dataEime = DateTool().dateToYMDHNString(
|
||||||
|
'${DateTime.now().millisecondsSinceEpoch ~/ 1000}');
|
||||||
state.dateTime.value = dataEime;
|
state.dateTime.value = dataEime;
|
||||||
|
|
||||||
state.sureBtnState.value = 0;
|
state.sureBtnState.value = 0;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user