lrf 1 年之前
父節點
當前提交
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 });
+  //         },
+  //       });
+  //     },
+  //   });
   },
 
   /**