tencentcloud-webar 1.0.6-8 → 1.0.6

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/auth.ts CHANGED
@@ -8,7 +8,8 @@ let auth: Auth
8
8
  export async function authorize(
9
9
  licenseKey: string,
10
10
  appId: string,
11
- authFunc:()=>Promise<AuthData>
11
+ authFunc:()=>Promise<AuthData>,
12
+ language? : string
12
13
  ) {
13
14
  /* IFTRUE_platform_h5*/
14
15
  auth = new Auth(licenseKey, appId, authFunc)
@@ -20,6 +21,7 @@ export async function authorize(
20
21
  const wxappid = accountInfo.miniProgram.appId
21
22
  auth = new Auth(licenseKey, appId, authFunc, wxappid)
22
23
  /*FITRUE_platform_wx*/
24
+ language && (auth.language = language)
23
25
  await auth.go()
24
26
  return {
25
27
  getEffectList: auth.getEffectList.bind(auth),