()
| 139 | } |
| 140 | |
| 141 | async function missions() { |
| 142 | const newBody = { ...JSON.parse(config.body) }; |
| 143 | newBody["__lib"] = "mission"; |
| 144 | newBody["__act"] = "get_default"; |
| 145 | newBody["get_success_repeat"] = "1"; |
| 146 | newBody["no_compatible_fix"] = "1"; |
| 147 | const options = { |
| 148 | url: "https://ngabbs.com/nuke.php", |
| 149 | headers: { |
| 150 | "Content-Type": config.contentType, |
| 151 | Cookie: config.cookie, |
| 152 | "User-Agent": config.userAgent, |
| 153 | }, |
| 154 | body: ObjectToFormData(newBody, config.contentType), |
| 155 | }; |
| 156 | |
| 157 | return await $.http.post(options).then( |
| 158 | (response) => { |
| 159 | const result = JSON.parse(response.body); |
| 160 | const mids = result.data[0].map((d) => d.id); |
| 161 | return mids; |
| 162 | }, (reason) => { |
| 163 | $.logErr(reason.err, reason); |
| 164 | return []; |
| 165 | }); |
| 166 | } |
| 167 | |
| 168 | async function checkInCountAdd(mid) { |
| 169 | const newBody = { ...JSON.parse(config.body) }; |
no test coverage detected