Skip to content

Commit 3baaf22

Browse files
committed
1 parent 05586ee commit 3baaf22

1 file changed

Lines changed: 52 additions & 0 deletions

File tree

‎Task/midu_Read.js‎

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -255,6 +255,58 @@ function dice_double() {
255255
})
256256
})
257257
}
258+
259+
// 每日签到
260+
function signDay(bodyVal) {
261+
return new Promise((resolve, reject) => {
262+
const signurlVal = 'https://apiwz.midukanshu.com/wz/task/signInV2?' + bodyVal
263+
const url = {
264+
url: signurlVal,
265+
headers: {}
266+
}
267+
url.headers['Host'] = 'apiwz.midukanshu.com'
268+
url.headers['Content-Type'] = 'application/x-www-form-urlencoded'
269+
url.headers['User-Agent'] = 'Mozilla/5.0 (iPhone; CPU iPhone OS 12_4_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148'
270+
$.post(url, (error, response, data) => {
271+
try {
272+
$.log(`🐍🐢 ${cookieName} signDay - response: ${JSON.stringify(response)}`)
273+
signinfo.signDay = JSON.parse(data)
274+
resolve()
275+
} catch (e) {
276+
$.msg(cookieName, `签到结果: 失败`, `说明: ${e}`)
277+
$.log(`❌ ${cookieName} signDay - 签到失败: ${e}`)
278+
$.log(`❌ ${cookieName} signDay - response: ${JSON.stringify(response)}`)
279+
resolve()
280+
}
281+
})
282+
})
283+
}
284+
285+
// 签到视频奖励
286+
function signVideo(bodyVal) {
287+
return new Promise((resolve, reject) => {
288+
const signVideourlVal = 'https://apiwz.midukanshu.com/wz/task/signVideoReward?' + bodyVal
289+
const url = {
290+
url: signVideourlVal,
291+
headers: {}
292+
}
293+
url.headers['Host'] = 'apiwz.midukanshu.com'
294+
url.headers['Content-Type'] = 'application/x-www-form-urlencoded'
295+
url.headers['User-Agent'] = 'Mozilla/5.0 (iPhone; CPU iPhone OS 12_4_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148'
296+
$.post(url, (error, response, data) => {
297+
try {
298+
$.log(`🐍🐢 ${cookieName} signVideo - response: ${JSON.stringify(response)}`)
299+
signinfo.signVideo = JSON.parse(data)
300+
resolve()
301+
} catch (e) {
302+
$.msg(cookieName, `签到视频: 失败`, `说明: ${e}`)
303+
$.log(`❌ ${cookieName} signVideo - 签到视频失败: ${e}`)
304+
$.log(`❌ ${cookieName} signVideo - response: ${JSON.stringify(response)}`)
305+
resolve()
306+
}
307+
})
308+
})
309+
}
258310

259311

260312

0 commit comments

Comments
 (0)