@newbeebox/newbeebox-client-web-sdk 1.0.9 → 1.0.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/index.js +2 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -45,14 +45,14 @@ console.log(info);
|
|
|
45
45
|
|
|
46
46
|
获取当前用户的订阅信息。
|
|
47
47
|
|
|
48
|
-
#### `InstallWoWAddon(game_version_id,
|
|
48
|
+
#### `InstallWoWAddon(game_version_id, addon_id): Promise<any>`
|
|
49
49
|
|
|
50
50
|
安装魔兽世界插件。
|
|
51
51
|
|
|
52
52
|
| 参数 | 类型 | 说明 |
|
|
53
53
|
|------|------|------|
|
|
54
54
|
| game_version_id | string \| number | 游戏版本ID |
|
|
55
|
-
|
|
|
55
|
+
| addon_id | string \| number | 插件ID |
|
|
56
56
|
|
|
57
57
|
#### `Patch(tool_name, data?): Promise<any>`
|
|
58
58
|
|
package/index.js
CHANGED
|
@@ -145,7 +145,7 @@ export class NewBeeClient {
|
|
|
145
145
|
}
|
|
146
146
|
|
|
147
147
|
// 安装魔兽世界插件
|
|
148
|
-
async InstallWoWAddon(game_version_id,
|
|
148
|
+
async InstallWoWAddon(game_version_id, addon_id) {
|
|
149
149
|
this._ensureInitialized();
|
|
150
150
|
|
|
151
151
|
let install_response = null;
|
|
@@ -158,7 +158,7 @@ export class NewBeeClient {
|
|
|
158
158
|
body: JSON.stringify({
|
|
159
159
|
app_id: this.app_id,
|
|
160
160
|
game_version_id: game_version_id,
|
|
161
|
-
|
|
161
|
+
addon_id: addon_id
|
|
162
162
|
})
|
|
163
163
|
});
|
|
164
164
|
|