MCPcopy Index your code
hub / github.com/chavyleung/scripts / question_

Function question_

wanda/wanda.js:117–139  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

115}
116
117function question_() {
118 return new Promise((resolve) => {
119 const questionVal = getKey()['key']+'/question/qustion/strength.apiactivityCode='+$.questionCode
120 mx_api['ts'] = getKey()['ts']
121 mx_api['check'] = hex_md5(questionVal)
122 const url = {
123 url:'https://activity-api-mx.wandafilm.com/question/qustion/strength.api',
124 headers:{
125 'MX-API':JSON.stringify(mx_api),
126 },
127 body : 'activityCode='+$.questionCode
128 }
129 $.post(url, (err, resp, data) => {
130 try {
131 $.log(`尝试性报名答题`)
132 } catch (e) {
133 $.logErr(e, resp)
134 } finally {
135 resolve()
136 }
137 })
138 })
139}
140
141// 获取题目答案
142function question() {

Callers

nothing calls this directly

Calls 5

getKeyFunction · 0.85
hex_md5Function · 0.85
postMethod · 0.45
logMethod · 0.45
logErrMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…