@anker-in/ui 0.3.0 → 0.3.1
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/dist/demo-room.js +15 -4
- package/dist/demo-room.js.map +1 -1
- package/dist/demo-room.mjs +15 -4
- package/dist/demo-room.mjs.map +1 -1
- package/dist/index.d.mts +22 -8
- package/dist/index.d.ts +22 -8
- package/dist/index.js +104 -29
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +104 -29
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/demo-room.js
CHANGED
|
@@ -1482,12 +1482,23 @@ var DemoRoomApiClient = class {
|
|
|
1482
1482
|
return response.booking;
|
|
1483
1483
|
}
|
|
1484
1484
|
/**
|
|
1485
|
-
* 查询 POD
|
|
1486
|
-
*
|
|
1485
|
+
* 查询 POD 作品信息
|
|
1486
|
+
* 模式1(优先):通过 booking_token 精确查询
|
|
1487
|
+
* 模式2:通过 demoroom_code + session_id 查询(MIR 跳回时预约尚未创建的场景)
|
|
1488
|
+
* @param params 查询参数
|
|
1487
1489
|
*/
|
|
1488
|
-
async getBookingDesign(
|
|
1490
|
+
async getBookingDesign(params) {
|
|
1489
1491
|
const searchParams = new URLSearchParams();
|
|
1490
|
-
|
|
1492
|
+
if (params.booking_token) {
|
|
1493
|
+
searchParams.append("booking_token", params.booking_token);
|
|
1494
|
+
} else {
|
|
1495
|
+
if (params.demoroom_code) {
|
|
1496
|
+
searchParams.append("demoroom_code", params.demoroom_code);
|
|
1497
|
+
}
|
|
1498
|
+
if (params.session_id) {
|
|
1499
|
+
searchParams.append("session_id", params.session_id);
|
|
1500
|
+
}
|
|
1501
|
+
}
|
|
1491
1502
|
return this.request(
|
|
1492
1503
|
`/api/v1/store/bookings/design?${searchParams.toString()}`
|
|
1493
1504
|
);
|