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 CHANGED
@@ -38,12 +38,10 @@ yarn build:lib
38
38
 
39
39
  1. 通过 npm
40
40
 
41
- metamaker-for-three 暂时没有上 npm,通过在 packagejson 中添加 github 的地址,并进行 yarn install
41
+ metamaker-for-three
42
42
 
43
43
  ```
44
- "dependencies": {
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,
@@ -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("//open.metamaker.cn/api/openmm/v1/text_to_anim", {
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,