fix: 租客钥匙时间不足6小时,禁止获取单次钥匙

This commit is contained in:
范鹏 2024-12-12 09:10:39 +08:00
parent 8e57904edb
commit d78bd55b2b

View File

@ -1180,13 +1180,12 @@ export const useStarCloudStore = defineStore('starCloud', {
}
const { code, data, message } = await getLockSettingDataRequest({
lockId: lockId
lockId
})
if (code === Result.Success.code) {
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)
this.getServerTimestamp().then(() => {})
return Result.Success
}