| 115 | } |
| 116 | |
| 117 | function 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 | // 获取题目答案 |
| 142 | function question() { |