Browse Source

临时测试

Pchen. 9 months ago
parent
commit
2b772740a7
1 changed files with 3 additions and 0 deletions
  1. 3 0
      lib/Lepao/Lepao.js

+ 3 - 0
lib/Lepao/Lepao.js

@@ -56,6 +56,7 @@ class Lepao {
         if (!paths || paths.length === 0) {
         if (!paths || paths.length === 0) {
             throw new Error('未找到符合条件的路线,请改变路径选择条件')
             throw new Error('未找到符合条件的路线,请改变路径选择条件')
         }
         }
+        console.log(paths)
 
 
         // const randomPath = paths[Math.floor(Math.random() * paths.length)]
         // const randomPath = paths[Math.floor(Math.random() * paths.length)]
         const randomPath = paths[0]
         const randomPath = paths[0]
@@ -67,9 +68,11 @@ class Lepao {
     async getRecord(uid, token, school_id, student_id) {
     async getRecord(uid, token, school_id, student_id) {
         try {
         try {
             const reqData = { uid, token, school_id, student_id }
             const reqData = { uid, token, school_id, student_id }
+            console.log(reqData)
             const recordUrl = this.runpy + '/get_record'
             const recordUrl = this.runpy + '/get_record'
             let recordRes = await axios.post(recordUrl, reqData)
             let recordRes = await axios.post(recordUrl, reqData)
             const { data } = recordRes
             const { data } = recordRes
+            console.log(data)
             if (!data || data.status !== 1 || !data.data) {
             if (!data || data.status !== 1 || !data.data) {
                 this.logger.info('获取剩余跑步次数失败!')
                 this.logger.info('获取剩余跑步次数失败!')
                 console.log(data)
                 console.log(data)