@cpzxrobot/sdk 1.3.34 → 1.3.35

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/index.js CHANGED
@@ -162,6 +162,9 @@ class Cpzxrobot {
162
162
  openMiniApp(url) {
163
163
  this.platform.jumpToMiniApp(url);
164
164
  }
165
+ scanQrcode() {
166
+ return this.platform.scanQrcode();
167
+ }
165
168
  setAuth(auth, args) {
166
169
  var logger = (msg, level) => {
167
170
  switch (level) {
package/index.ts CHANGED
@@ -175,6 +175,10 @@ export class Cpzxrobot {
175
175
  this.platform.jumpToMiniApp(url);
176
176
  }
177
177
 
178
+ scanQrcode() {
179
+ return this.platform.scanQrcode();
180
+ }
181
+
178
182
  setAuth(auth: string, args: {
179
183
  baseURL: string;
180
184
  verbose: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cpzxrobot/sdk",
3
- "version": "1.3.34",
3
+ "version": "1.3.35",
4
4
  "description": "提供给上海正芯数智APP第三方H5应用使用的SDK",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {
package/types.d.ts CHANGED
@@ -428,7 +428,7 @@ class Cpzxrobot {
428
428
  // setTitle: (title: string) => void;
429
429
  // saveBase64: (base64: string, filename: string) => void;
430
430
  // saveBlob: (blob: Blob, filename: string) => void;
431
- // scanQrcode: () => Promise<string>;
431
+ scanQrcode: () => Promise<string>;
432
432
  // vibrate: (time?: number) => void;
433
433
  // reloadGroup: (key: string) => void;
434
434
  // getGeo: () => Promise<{ lat: number; lng: number }>;