Skip to content

Commit

Permalink
Merge pull request Wenmoux#304 from llh1347/llh1347-patch-1
Browse files Browse the repository at this point in the history
更新魅族社区签到脚本接口
  • Loading branch information
Wenmoux authored Dec 13, 2023
2 parents 56f999e + 1237c52 commit fde29f4
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions scripts/meizu.js
Original file line number Diff line number Diff line change
@@ -1,29 +1,29 @@
//魅族社区https://bbs.meizu.cn/
//魅族社区https://www.meizu.cn/

const axios = require("axios");
function meizu() {
return new Promise(async (resolve) => {
try {
let url =
"https://mf.meizu.cn/signin/sign";
"https://myplus-api.meizu.cn/myplus-muc/u/user/signin";
const header = {
headers: {
Referer: "https://mf.meizu.cn/space/user",
Referer: "https://www.meizu.cn",
cookie: config.meizu.cookie,
},
};
let res = await axios.get(url, header);
let res = await axios.post (url,"", header);
if (res.data.code == 200) {
data = `${res.data.message} 排名 ${res.data.rank}`
msg = `煤球奖励+${res.data.data.mcoin},已连续签到${res.data.data.continuous}`
} else {
data = res.data.message;
msg = `今日已签到,明天再来哦`
}
console.log(data);
console.log(res.data.msg);
} catch (err) {
msg = `签到接口请求错误`
console.log(err);
data="签到接口请求出错"
}
resolve("【魅族社区】:" + data);
resolve("【魅族社区】:" + msg);
});
}

Expand Down

0 comments on commit fde29f4

Please sign in to comment.