wjx 7 months ago
parent
commit
83da89ce33
2 changed files with 38 additions and 39 deletions
  1. 0 0
      dist/IAA/qcsdkIAA-1.0.0.js
  2. 38 39
      src/config.js

File diff suppressed because it is too large
+ 0 - 0
dist/IAA/qcsdkIAA-1.0.0.js


+ 38 - 39
src/config.js

@@ -107,45 +107,44 @@ switch (BUILD_ENV) {
 try {
     IAAConfig.gameParams["game-pkg_name"] = IAA.canIUse ? "" : "game";
 
-    IAA.getSystemInfo({
-        success: (res) => {
-            IAAConfig.deviceParams["device-brand"] = encodeURIComponent(res.brand); // 手机品牌
-            IAAConfig.deviceParams["device-model"] = encodeURIComponent(res.model); // 手机型号
-            IAAConfig.deviceParams["device-screen"] = encodeURIComponent(
-                res.screenWidth + "x" + res.screenHeight
-            ); // 屏幕分辨率
-            console.log("res.platform====>", res.platform);
-            IAAConfig.deviceParams["device-os"] = res.platform;
-            IAAConfig.deviceParams["device-os_version"] = encodeURIComponent(
-                res.system
-            ); // 操作系统版本
-            (IAAConfig.extParams.brand = res.brand),
-                (IAAConfig.extParams.model = res.model),
-                (IAAConfig.extParams.pixelRatio = res.pixelRatio),
-                (IAAConfig.extParams.windowWidth = res.windowWidth),
-                (IAAConfig.extParams.windowHeight = res.windowHeight),
-                (IAAConfig.extParams.statusBarHeight = res.statusBarHeight),
-                (IAAConfig.extParams.language = res.language),
-                (IAAConfig.extParams.version = res.version),
-                (IAAConfig.extParams.system = res.system),
-                (IAAConfig.extParams.platform = res.platform),
-                (IAAConfig.extParams.fontSizeSetting = res.fontSizeSetting),
-                (IAAConfig.extParams.SDKVersion = res.SDKVersion),
-                (IAAConfig.extParams.benchmarkLevel = res.benchmarkLevel),
-                (IAAConfig.extParams["albumAuthorized\t"] = res.albumAuthorized),
-                (IAAConfig.extParams.cameraAuthorized = res.cameraAuthorized),
-                (IAAConfig.extParams.locationAuthorized = res.locationAuthorized),
-                (IAAConfig.extParams.microphoneAuthorized = res.microphoneAuthorized),
-                (IAAConfig.extParams.notificationAuthorized = res.notificationAuthorized),
-                (IAAConfig.extParams.notificationAlertAuthorized = res.notificationAlertAuthorized),
-                (IAAConfig.extParams.notificationBadgeAuthorized = res.notificationBadgeAuthorized),
-                (IAAConfig.extParams.notificationSoundAuthorized = res.notificationSoundAuthorized),
-                (IAAConfig.extParams.bluetoothEnabled = res.bluetoothEnabled),
-                (IAAConfig.extParams.locationEnabled = res.locationEnabled),
-                (IAAConfig.extParams.wifiEnabled = res.wifiEnabled),
-                (IAAConfig.extParams.safeArea = res.safeArea);
-        },
-    });
+    const res = IAA.getSystemInfoSync()
+    IAAConfig.deviceParams["device-brand"] = encodeURIComponent(res.brand); // 手机品牌
+    IAAConfig.deviceParams["device-model"] = encodeURIComponent(res.model); // 手机型号
+    IAAConfig.deviceParams["device-screen"] = encodeURIComponent(
+        res.screenWidth + "x" + res.screenHeight
+    ); // 屏幕分辨率
+    console.log("res.platform====>", res.platform);
+    IAAConfig.deviceParams["device-os"] = res.platform;
+    IAAConfig.deviceParams["device-os_version"] = encodeURIComponent(
+        res.system
+    ); // 操作系统版本
+    (IAAConfig.extParams.brand = res.brand),
+        (IAAConfig.extParams.model = res.model),
+        (IAAConfig.extParams.pixelRatio = res.pixelRatio),
+        (IAAConfig.extParams.windowWidth = res.windowWidth),
+        (IAAConfig.extParams.windowHeight = res.windowHeight),
+        (IAAConfig.extParams.statusBarHeight = res.statusBarHeight),
+        (IAAConfig.extParams.language = res.language),
+        (IAAConfig.extParams.version = res.version),
+        (IAAConfig.extParams.system = res.system),
+        (IAAConfig.extParams.platform = res.platform),
+        (IAAConfig.extParams.fontSizeSetting = res.fontSizeSetting),
+        (IAAConfig.extParams.SDKVersion = res.SDKVersion),
+        (IAAConfig.extParams.benchmarkLevel = res.benchmarkLevel),
+        (IAAConfig.extParams["albumAuthorized\t"] = res.albumAuthorized),
+        (IAAConfig.extParams.cameraAuthorized = res.cameraAuthorized),
+        (IAAConfig.extParams.locationAuthorized = res.locationAuthorized),
+        (IAAConfig.extParams.microphoneAuthorized = res.microphoneAuthorized),
+        (IAAConfig.extParams.notificationAuthorized = res.notificationAuthorized),
+        (IAAConfig.extParams.notificationAlertAuthorized = res.notificationAlertAuthorized),
+        (IAAConfig.extParams.notificationBadgeAuthorized = res.notificationBadgeAuthorized),
+        (IAAConfig.extParams.notificationSoundAuthorized = res.notificationSoundAuthorized),
+        (IAAConfig.extParams.bluetoothEnabled = res.bluetoothEnabled),
+        (IAAConfig.extParams.locationEnabled = res.locationEnabled),
+        (IAAConfig.extParams.wifiEnabled = res.wifiEnabled),
+        (IAAConfig.extParams.safeArea = res.safeArea);
+
+
     IAAConfig.extParams.userua = window.navigator.userAgent;
     IAA.getNetworkType({
         success: (res) => {

Some files were not shown because too many files changed in this diff