Skip to content

Commit

Permalink
[add] update
Browse files Browse the repository at this point in the history
  • Loading branch information
zys8119 committed Dec 13, 2023
1 parent e580928 commit e1bd340
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions other/beiwaitest.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,10 @@ console.log(result, ...result.match(/%c/g).map((e, k)=>k % 2 === 0? 'color:#ff0'
视频题目获取

```javascript
$0.__vue__.lists.filter(e=>/测试|练习/.test(e.name)).map(e=>({
id:e.id,
projectUserId: $0.__vue__.$bus.store.userInfo.userId,
courseCode: $0.__vue__.$bus.store.courseInfo.courseCodes,
courseElementId: e.courseElementId,
learnerCourseId: e.learnerCourseId,
orgCode: $0.__vue__.$bus.store.userInfo.orgCode,
validCode: CryptoJS.MD5([$0.__vue__.$bus.store.userInfo.userId,e.id,'QUIZMD5',$0.__vue__.$bus.store.courseInfo.courseCodes,$0.__vue__.$bus.store.userInfo.orgCode].join('')).toString()
})).map(e=>`https://quiz.ebeiwai.com/icourse/fore/myselftest/learnerDo/${e.id}?${Object.entries(e).map(e=>e.join('=')).join('&')}`)
console.clear()
console.log(JSON.stringify($$('#Anchor li').map(e=>(el=>({
title:el.querySelector('.flex-a-s .question-stem').innerText,
"答案":[...el.querySelectorAll('.choice-options .color-47A66F')].map(e=>e.innerText)
}))($$(`[id="${e.dataset.id}"]`)[0])), null, 4))
```

0 comments on commit e1bd340

Please sign in to comment.