lrf 1 год назад
Родитель
Сommit
6ca0be6449
1 измененных файлов с 17 добавлено и 17 удалено
  1. 17 17
      pages/home/index.js

+ 17 - 17
pages/home/index.js

@@ -79,23 +79,23 @@ Page({
     //   },
     // });
     // TODO:获取微信运动信息
-    wx.getWeRunData({
-      success: (res) => {
-        const app = getApp();
-        const { encryptedData, iv } = res;
-        const session_key = app.globalData.wxInfo.session_key;
-        const data = { encryptedData, iv, session_key };
-        wx.request({
-          url: `${app.globalData.publicUrl}/st/api/weixin/decrypt`,
-          method: 'POST',
-          data,
-          success: (res) => {
-            const setpInfo = res.data?.data;
-            if (stepInfo) this.setData({ step: stepInfo.step });
-          },
-        });
-      },
-    });
+  //   wx.getWeRunData({
+  //     success: (res) => {
+  //       const app = getApp();
+  //       const { encryptedData, iv } = res;
+  //       const session_key = app.globalData.wxInfo.session_key;
+  //       const data = { encryptedData, iv, session_key };
+  //       wx.request({
+  //         url: `${app.globalData.publicUrl}/st/api/weixin/decrypt`,
+  //         method: 'POST',
+  //         data,
+  //         success: (res) => {
+  //           const setpInfo = res.data?.data;
+  //           if (stepInfo) this.setData({ step: stepInfo.step });
+  //         },
+  //       });
+  //     },
+  //   });
   },
 
   /**