Update 盖瑞特后市场.js

This commit is contained in:
3288588344
2025-01-26 21:11:58 +08:00
committed by GitHub
parent 93eef033a4
commit be631e6e37

View File

@@ -37,19 +37,9 @@ async function main() {
const signInResponse = await axios.get(url, { headers });
// 打印整个返回的响应内容
console.log('签到响应内容:', signInResponse);
const { data } = signInResponse;
console.log('返回的 data:', data); // 打印 data 确认返回的数据结构
if (data.code === 30005) {
console.log('签到成功');
} else if (data.code === 0) {
console.log('签到失败');
} else {
console.log('未知错误代码:', data.code); // 如果不是我们预期的错误代码,输出错误
}
}
} else {
console.log('公告获取失败HTTP 状态码:', externalResponse.status);
}