ms-vite-plugin 1.4.34 → 1.4.35

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.
Binary file
Binary file
package/docs/api/cloud.md CHANGED
@@ -5,7 +5,6 @@
5
5
  ## 注意事项
6
6
 
7
7
  - `cloud` 只在主脚本上下文注册,不支持在线程脚本里调用。
8
- - 授权卡密模式不可用。
9
8
  - 服务器事件只有一个主脚本监听槽位,多次调用 `onEvent` 会覆盖旧监听。
10
9
 
11
10
  ## 协议
@@ -5,7 +5,6 @@
5
5
  ## 注意事项
6
6
 
7
7
  - `$云控` 只在主脚本上下文注册,不支持在线程脚本里调用。
8
- - 授权卡密模式不可用。
9
8
  - 服务器事件只有一个主脚本监听槽位,多次调用 `监听事件回调` 会覆盖旧监听。
10
9
 
11
10
  ## 协议
@@ -6,7 +6,6 @@
6
6
 
7
7
  - Python 云控模块只支持英文方法,不提供中文方法。
8
8
  - `cloud` 只能在主脚本中调用,不支持在线程脚本里调用。
9
- - 授权卡密模式不可用。
10
9
  - 服务器事件只有一个主脚本监听槽位,多次调用 `onEvent` 会覆盖旧监听。
11
10
 
12
11
  ## 协议
@@ -517,6 +517,8 @@ GET /api/setVolume
517
517
 
518
518
  POST /api/login
519
519
 
520
+ 用户授权模式下,该接口会使用账号密码执行登录。授权卡密模式下,该接口是兼容旧控制端的空操作,会直接返回成功,不读取请求体字段,不切换服务器类型,也不执行账号登录。
521
+
520
522
  > Body 请求参数
521
523
 
522
524
  ```json
@@ -532,9 +534,9 @@ POST /api/login
532
534
  | 名称 | 位置 | 类型 | 必选 | 中文名 | 说明 |
533
535
  | ------------ | ---- | ------ | ---- | ---------- | ---- |
534
536
  | body | body | object | 是 | | none |
535
- | » serverType | body | string | 是 | 服务器类型 | none |
536
- | » username | body | string | 是 | 用户名 | none |
537
- | » password | body | string | 是 | 密码 | none |
537
+ | » serverType | body | string | 是 | 服务器类型 | 用户授权模式下使用;授权卡密模式下忽略 |
538
+ | » username | body | string | 是 | 用户名 | 用户授权模式下使用;授权卡密模式下忽略 |
539
+ | » password | body | string | 是 | 密码 | 用户授权模式下使用;授权卡密模式下忽略 |
538
540
 
539
541
  #### 枚举值
540
542
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ms-vite-plugin",
3
- "version": "1.4.34",
3
+ "version": "1.4.35",
4
4
  "type": "commonjs",
5
5
  "license": "MIT",
6
6
  "publishConfig": {