@zeewain/3d-avatar-sdk 1.2.4-0 → 1.2.4-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/examples/test-vue2/package.json +1 -1
- package/dist/examples/test-vue3/package.json +1 -1
- package/dist/examples/test-vue3/src/App.vue +1 -1
- package/dist/index.es5.js +9 -10
- package/dist/index.es5.umd.js +9 -10
- package/dist/index.esm.js +6 -7
- package/dist/index.umd.cjs +6 -7
- package/package.json +1 -1
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
"@element-plus/icons-vue": "^2.3.1",
|
|
25
25
|
"@vueuse/core": "^13.5.0",
|
|
26
26
|
"@vueuse/integrations": "^13.5.0",
|
|
27
|
-
"@zeewain/3d-avatar-sdk": "^1.2.4-
|
|
27
|
+
"@zeewain/3d-avatar-sdk": "^1.2.4-1",
|
|
28
28
|
"dayjs": "^1.11.13",
|
|
29
29
|
"element-plus": "^2.10.4",
|
|
30
30
|
"vite-plugin-html": "^3.2.2",
|
|
@@ -299,7 +299,7 @@ function initializeSDKConfig(): ZEEAvatarSDK | null {
|
|
|
299
299
|
env: globalConfig.env,
|
|
300
300
|
apiUrl: globalConfig.apiBaseUrl,
|
|
301
301
|
resourcesUrl: globalConfig.resourcesUrl || undefined,
|
|
302
|
-
|
|
302
|
+
enableDebugLog: true,
|
|
303
303
|
// 待机动作列表:比心,左手指示(低)
|
|
304
304
|
idleMotionList: globalConfig.idleMotionListString?.split(',').filter(item => item.trim()) || [],
|
|
305
305
|
|
package/dist/index.es5.js
CHANGED
|
@@ -14270,7 +14270,7 @@ var ZEEAvatarSDKLib = (function (exports) {
|
|
|
14270
14270
|
return;
|
|
14271
14271
|
}
|
|
14272
14272
|
// 处理音频数据
|
|
14273
|
-
if (response.data
|
|
14273
|
+
if (response.data) {
|
|
14274
14274
|
// 自定义音频播报时,如果服务器未返回音频URL,使用传入的audioUrl
|
|
14275
14275
|
if (task.params.type === exports.BroadcastType.AUDIO && task.params.audioUrl && !response.data.voiceUrl) {
|
|
14276
14276
|
response.data.voiceUrl = task.params.audioUrl;
|
|
@@ -14281,15 +14281,14 @@ var ZEEAvatarSDKLib = (function (exports) {
|
|
|
14281
14281
|
taskId: task.id,
|
|
14282
14282
|
pendingCount: task.pendingResponses.length
|
|
14283
14283
|
});
|
|
14284
|
-
|
|
14285
|
-
|
|
14286
|
-
|
|
14287
|
-
|
|
14288
|
-
|
|
14289
|
-
|
|
14290
|
-
|
|
14291
|
-
}
|
|
14292
|
-
// 任务完成生成,保持REQUESTING状态直到所有响应发送完毕
|
|
14284
|
+
// 检查是否完成
|
|
14285
|
+
if (response.data.done) {
|
|
14286
|
+
task.isGenerationComplete = true;
|
|
14287
|
+
this.logger.debug('Task generation completed', {
|
|
14288
|
+
taskId: task.id,
|
|
14289
|
+
totalResponses: task.pendingResponses.length
|
|
14290
|
+
});
|
|
14291
|
+
}
|
|
14293
14292
|
}
|
|
14294
14293
|
} catch (error) {
|
|
14295
14294
|
this.handleTaskError(task, error);
|
package/dist/index.es5.umd.js
CHANGED
|
@@ -14273,7 +14273,7 @@
|
|
|
14273
14273
|
return;
|
|
14274
14274
|
}
|
|
14275
14275
|
// 处理音频数据
|
|
14276
|
-
if (response.data
|
|
14276
|
+
if (response.data) {
|
|
14277
14277
|
// 自定义音频播报时,如果服务器未返回音频URL,使用传入的audioUrl
|
|
14278
14278
|
if (task.params.type === exports.BroadcastType.AUDIO && task.params.audioUrl && !response.data.voiceUrl) {
|
|
14279
14279
|
response.data.voiceUrl = task.params.audioUrl;
|
|
@@ -14284,15 +14284,14 @@
|
|
|
14284
14284
|
taskId: task.id,
|
|
14285
14285
|
pendingCount: task.pendingResponses.length
|
|
14286
14286
|
});
|
|
14287
|
-
|
|
14288
|
-
|
|
14289
|
-
|
|
14290
|
-
|
|
14291
|
-
|
|
14292
|
-
|
|
14293
|
-
|
|
14294
|
-
}
|
|
14295
|
-
// 任务完成生成,保持REQUESTING状态直到所有响应发送完毕
|
|
14287
|
+
// 检查是否完成
|
|
14288
|
+
if (response.data.done) {
|
|
14289
|
+
task.isGenerationComplete = true;
|
|
14290
|
+
this.logger.debug('Task generation completed', {
|
|
14291
|
+
taskId: task.id,
|
|
14292
|
+
totalResponses: task.pendingResponses.length
|
|
14293
|
+
});
|
|
14294
|
+
}
|
|
14296
14295
|
}
|
|
14297
14296
|
} catch (error) {
|
|
14298
14297
|
this.handleTaskError(task, error);
|
package/dist/index.esm.js
CHANGED
|
@@ -1939,7 +1939,7 @@ class BroadcastService extends UnityBaseService {
|
|
|
1939
1939
|
return;
|
|
1940
1940
|
}
|
|
1941
1941
|
// 处理音频数据
|
|
1942
|
-
if (response.data
|
|
1942
|
+
if (response.data) {
|
|
1943
1943
|
// 自定义音频播报时,如果服务器未返回音频URL,使用传入的audioUrl
|
|
1944
1944
|
if (task.params.type === BroadcastType.AUDIO && task.params.audioUrl && !response.data.voiceUrl) {
|
|
1945
1945
|
response.data.voiceUrl = task.params.audioUrl;
|
|
@@ -1947,12 +1947,11 @@ class BroadcastService extends UnityBaseService {
|
|
|
1947
1947
|
// 添加处理后的响应对象到待发送队列
|
|
1948
1948
|
task.pendingResponses.push(response);
|
|
1949
1949
|
this.logger.debug('Response added to task', { taskId: task.id, pendingCount: task.pendingResponses.length });
|
|
1950
|
-
|
|
1951
|
-
|
|
1952
|
-
|
|
1953
|
-
|
|
1954
|
-
|
|
1955
|
-
// 任务完成生成,保持REQUESTING状态直到所有响应发送完毕
|
|
1950
|
+
// 检查是否完成
|
|
1951
|
+
if (response.data.done) {
|
|
1952
|
+
task.isGenerationComplete = true;
|
|
1953
|
+
this.logger.debug('Task generation completed', { taskId: task.id, totalResponses: task.pendingResponses.length });
|
|
1954
|
+
}
|
|
1956
1955
|
}
|
|
1957
1956
|
}
|
|
1958
1957
|
catch (error) {
|
package/dist/index.umd.cjs
CHANGED
|
@@ -1945,7 +1945,7 @@
|
|
|
1945
1945
|
return;
|
|
1946
1946
|
}
|
|
1947
1947
|
// 处理音频数据
|
|
1948
|
-
if (response.data
|
|
1948
|
+
if (response.data) {
|
|
1949
1949
|
// 自定义音频播报时,如果服务器未返回音频URL,使用传入的audioUrl
|
|
1950
1950
|
if (task.params.type === exports.BroadcastType.AUDIO && task.params.audioUrl && !response.data.voiceUrl) {
|
|
1951
1951
|
response.data.voiceUrl = task.params.audioUrl;
|
|
@@ -1953,12 +1953,11 @@
|
|
|
1953
1953
|
// 添加处理后的响应对象到待发送队列
|
|
1954
1954
|
task.pendingResponses.push(response);
|
|
1955
1955
|
this.logger.debug('Response added to task', { taskId: task.id, pendingCount: task.pendingResponses.length });
|
|
1956
|
-
|
|
1957
|
-
|
|
1958
|
-
|
|
1959
|
-
|
|
1960
|
-
|
|
1961
|
-
// 任务完成生成,保持REQUESTING状态直到所有响应发送完毕
|
|
1956
|
+
// 检查是否完成
|
|
1957
|
+
if (response.data.done) {
|
|
1958
|
+
task.isGenerationComplete = true;
|
|
1959
|
+
this.logger.debug('Task generation completed', { taskId: task.id, totalResponses: task.pendingResponses.length });
|
|
1960
|
+
}
|
|
1962
1961
|
}
|
|
1963
1962
|
}
|
|
1964
1963
|
catch (error) {
|