Browse Source

修复乐跑次数获取失败的bug

Pchen0 11 months ago
parent
commit
8364cab48a
1 changed files with 1 additions and 1 deletions
  1. 1 1
      lib/Lepao/Lepao.js

+ 1 - 1
lib/Lepao/Lepao.js

@@ -56,7 +56,7 @@ class Lepao {
             const reqData = { uid, token, school_id, student_id }
             const recordUrl = this.runpy + '/get_record'
             const recordRes = await axios.post(recordUrl, reqData)
-            const { data } = recordRes
+            const { data } = recordRes.data
             if (!data || data.status !== 1 || !data.data) {
                 this.logger.info('获取剩余跑步次数失败!')
                 console.log(data)