From 413602265737081c58d5259c1016c32deea4f7f0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8C=83=E9=B9=8F?= Date: Tue, 3 Dec 2024 13:53:41 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E6=94=B9=E8=8E=B7=E5=8F=96?= =?UTF-8?q?=E7=A6=BB=E7=BA=BF=E5=AF=86=E7=A0=81=E5=85=A5=E5=8F=82=E7=BB=93?= =?UTF-8?q?=E6=9E=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 7 ++++--- starCloud.js | 8 +++++--- 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 36e3797..a101af6 100644 --- a/README.md +++ b/README.md @@ -88,11 +88,12 @@ const { code, data, message } = await $starCloud.openDoor(params) /** * 获取离线密码 - * @param {AccountInfo} accountInfo 账号信息 - * @param {OfflinePassword} password 密码信息 + * @param params + * @param {AccountInfo} params.accountInfo 账号信息 + * @param {OfflinePassword} params.password 密码信息 * @returns {Promise} */ -const data = await $starCloud.getOfflinePassword(accountInfo, password) +const data = await $starCloud.getOfflinePassword(params) /** * 自定义密码 diff --git a/starCloud.js b/starCloud.js index 6977b39..9f85a83 100644 --- a/starCloud.js +++ b/starCloud.js @@ -513,11 +513,13 @@ export const useStarCloudStore = defineStore('starCloud', { }, /** * 获取离线密码 - * @param {AccountInfo} accountInfo 账号信息 - * @param {OfflinePassword} password 密码信息 + * @param params + * @param {AccountInfo} params.accountInfo 账号信息 + * @param {OfflinePassword} params.password 密码信息 * @returns {Promise} */ - async getOfflinePassword(accountInfo, password) { + async getOfflinePassword(params) { + const { accountInfo, password } = params // 设置执行账号 const result = await this.login(accountInfo) if (result.code !== Result.Success.code) {