Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[pull] main from CenBoMin:main #6

Merged
merged 6 commits into from
Dec 19, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file modified .DS_Store
Binary file not shown.
29 changes: 7 additions & 22 deletions CONGHUA/Conghua.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,8 @@ if (isGetCookie = typeof $request !== 'undefined') {
$.index = i + 1;
console.log(`-------------------------\n\n开始【葱花视频${$.index}】`)
}
await signInfo();
//await everydaycoin();
//await signInfo();
await everydaycoin();
//await videoshare();
//await showmsg();
//await notify.sendNotify(`【收益总计】${signinfo.data.score}金币 现金约${signinfo.data.money}元\n`)
Expand All @@ -92,7 +92,7 @@ function GetCookie() {
function signInfo() {
return new Promise((resolve, reject) => {
const infourl = {
url: 'https://app.kxp.com/user/v1/user/profile',
url: `https://app.kxp.com/user/v1/user/profile`,
headers: JSON.parse(signheaderVal),
}
$.post(infourl, (error, response, data) => {
Expand All @@ -112,23 +112,6 @@ function signInfo() {
}
*/

function signInfo() {
return new Promise((resolve, reject) => {
let infourl = {
url: `https://app.kxp.com/user/v1/user/profile`,
headers: JSON.parse(signheaderVal),
}
$.post(infourl, (error, response, data) => {
let signinfo = JSON.parse(data);
if (signinfo.data.is_sign == '0') {
console.log(`\n【收益总计】${signinfo.data.score}金币 现金约${signinfo.data.money}元\n\n(今天获取${signinfo.data.today_score}金币)\n`);
}
resolve()
})
})
}

/*

//每天领金币(30min一次) //开启时段宝箱
function everydaycoin() {
Expand All @@ -139,8 +122,8 @@ function everydaycoin() {
headers: JSON.parse(signheaderVal),
}
$.post(url, async(error, response, data) => {
everyres = JSON.parse(data)
if (everyres.code == 1) {
let everyres = JSON.parse(data)
if (everyres.code == '200') {
boxretime = everyres.data.remain_time
$.setdata(boxretime, 'opbox')
detail += `【领金币】+${everyres.data.score}金币 下次奖励${everyres.data.remain_time / 30}分钟\n`
Expand All @@ -155,6 +138,8 @@ function everydaycoin() {
})
}


/*
//分享视频赚钱(每天三次)
function videoshare() {
return new Promise((resolve, reject) => {
Expand Down