fix: 租客钥匙时间不足6小时,禁止获取单次钥匙
This commit is contained in:
parent
8e57904edb
commit
d78bd55b2b
@ -1180,13 +1180,12 @@ export const useStarCloudStore = defineStore('starCloud', {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const { code, data, message } = await getLockSettingDataRequest({
|
const { code, data, message } = await getLockSettingDataRequest({
|
||||||
lockId: lockId
|
lockId
|
||||||
})
|
})
|
||||||
if (code === Result.Success.code) {
|
if (code === Result.Success.code) {
|
||||||
return new Result(code, { ...data.lockFeature }, message)
|
return new Result(code, { ...data.lockFeature }, message)
|
||||||
} else {
|
|
||||||
return new Result(code, data, message)
|
|
||||||
}
|
}
|
||||||
|
return new Result(code, data, message)
|
||||||
},
|
},
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -1301,7 +1300,6 @@ export const useStarCloudStore = defineStore('starCloud', {
|
|||||||
|
|
||||||
setStorage('starCloudToken', this.accountInfo.token)
|
setStorage('starCloudToken', this.accountInfo.token)
|
||||||
|
|
||||||
this.getServerTimestamp().then(() => {})
|
|
||||||
return Result.Success
|
return Result.Success
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user