metamaker-for-three 0.1.12 → 0.1.13
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 +3 -4
- package/examples/example.ts +2 -1
- package/libs/metamaker-for-three.js +1 -1
- package/package.json +1 -1
- package/src/lib/index.ts +2 -1
- package/src/lib/sign/index.js +174 -0
- package/tsconfig.json +1 -1
- package/types/index.d.ts +2 -0
- package/types/sign/index.d.ts +2 -0
package/README.md
CHANGED
|
@@ -38,12 +38,10 @@ yarn build:lib
|
|
|
38
38
|
|
|
39
39
|
1. 通过 npm
|
|
40
40
|
|
|
41
|
-
metamaker-for-three
|
|
41
|
+
metamaker-for-three
|
|
42
42
|
|
|
43
43
|
```
|
|
44
|
-
|
|
45
|
-
"metamaker-for-three": "https://github.com/MetaMakerDeveloper/AweSDK-ThreeJS.git#最新版本号"
|
|
46
|
-
}
|
|
44
|
+
npm install metamaker-for-three
|
|
47
45
|
```
|
|
48
46
|
|
|
49
47
|
在无法连接 github 的情况下使用 gitee 连接
|
|
@@ -113,6 +111,7 @@ import MMFT from 'metamaker-for-three'
|
|
|
113
111
|
headers: {
|
|
114
112
|
"Content-Type": "application/x-www-form-urlencoded",
|
|
115
113
|
Authorization: ttsAuth,
|
|
114
|
+
__hjvf:MMFT.sign()
|
|
116
115
|
},
|
|
117
116
|
body: qs.stringify({
|
|
118
117
|
text: text,
|
package/examples/example.ts
CHANGED
|
@@ -438,11 +438,12 @@ async function fetchTTSToAnim(text: string) {
|
|
|
438
438
|
speed: 42,
|
|
439
439
|
volume: 100,
|
|
440
440
|
};
|
|
441
|
-
let response: any = await fetch("//
|
|
441
|
+
let response: any = await fetch("//topen.metamaker.cn/api/openmm/v1/text_to_anim", {
|
|
442
442
|
method: "post",
|
|
443
443
|
headers: {
|
|
444
444
|
"Content-Type": "application/x-www-form-urlencoded",
|
|
445
445
|
Authorization: ttsAuth,
|
|
446
|
+
__hjvf: MMFT.sign(),
|
|
446
447
|
},
|
|
447
448
|
body: qs.stringify({
|
|
448
449
|
text: text,
|