mirror of
https://github.com/smallfawn/QLScriptPublic.git
synced 2025-12-17 23:35:02 +08:00
广汽传祺修复
This commit is contained in:
79
gacmotor.js
79
gacmotor.js
@@ -11,8 +11,8 @@
|
|||||||
* 2.通过WoolWeb获取 2w.onecc.cc 里面有APP接口和H5接口 APP接口带刷新CK H5接口不会
|
* 2.通过WoolWeb获取 2w.onecc.cc 里面有APP接口和H5接口 APP接口带刷新CK H5接口不会
|
||||||
* 3.通过WoolWeb扫码获取 和 APP接口等同
|
* 3.通过WoolWeb扫码获取 和 APP接口等同
|
||||||
* 变量示例 AT-11111-ASASASASASASASASASAS填入AT里面 RT-11111-BSBSBSBSBSBSBS填入RT里面
|
* 变量示例 AT-11111-ASASASASASASASASASAS填入AT里面 RT-11111-BSBSBSBSBSBSBS填入RT里面
|
||||||
* 开启发贴 gacmotorPost=false 默认关闭发表文章功能 true为开启(此功能存在风控检测,谨慎开启)
|
* 开启发贴 gacmotorPost=false 默认关闭发表文章功能 true为开启(此功能存在风控检测,谨慎开启) 目前没适配 小心扣豆子
|
||||||
* 开启评论 gacmotorComment=false 默认关闭评论功能 true为开启(此功能存在风控检测,谨慎开启)
|
* 开启评论 gacmotorComment=false 默认关闭评论功能 true为开启(此功能存在风控检测,谨慎开启) 目前没适配 小心扣豆子
|
||||||
* 每日抽奖 gacmotorLuckyDram=1 抽奖次数[1-10] 不写默认抽奖一次(首次免费) 以后每次花费2G豆抽奖 每天上限10次
|
* 每日抽奖 gacmotorLuckyDram=1 抽奖次数[1-10] 不写默认抽奖一次(首次免费) 以后每次花费2G豆抽奖 每天上限10次
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
@@ -39,6 +39,8 @@ function ReadFiles (filename) {
|
|||||||
TempAccount = TempAccount.toString();
|
TempAccount = TempAccount.toString();
|
||||||
TempAccount = JSON.parse(TempAccount);
|
TempAccount = JSON.parse(TempAccount);
|
||||||
}
|
}
|
||||||
|
}else{
|
||||||
|
console.log("未检测到广汽传祺GacmotorCookies.json...");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
async function writeFile(fileName, data) {
|
async function writeFile(fileName, data) {
|
||||||
@@ -86,6 +88,11 @@ class UserInfo {
|
|||||||
this.sharenNotFinishedNum = 0//转发未完成次数
|
this.sharenNotFinishedNum = 0//转发未完成次数
|
||||||
this.refreshStatus = false
|
this.refreshStatus = false
|
||||||
this.commenttext = ""
|
this.commenttext = ""
|
||||||
|
this.signInCaptchaId = null
|
||||||
|
this.signInRequestId = null
|
||||||
|
this.lotteryRequestId = null
|
||||||
|
this.shareCaptchaId = null
|
||||||
|
this.shareRequestId = null
|
||||||
|
|
||||||
}
|
}
|
||||||
async main() {
|
async main() {
|
||||||
@@ -224,7 +231,7 @@ class UserInfo {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
await this._activity_lotter_common({ "activityId": "531", "channel": "carapp_channel" })
|
//await this._activity_lotter_common({ "activityId": "531", "channel": "carapp_channel" })
|
||||||
//await this._getChinaTime()
|
//await this._getChinaTime()
|
||||||
/*console.log(`11/26截止 Do - 广州车展活动 奖品活动结束后14日内发放`);
|
/*console.log(`11/26截止 Do - 广州车展活动 奖品活动结束后14日内发放`);
|
||||||
if (this.BeiJingTime < 1701014400000) {
|
if (this.BeiJingTime < 1701014400000) {
|
||||||
@@ -779,13 +786,20 @@ class UserInfo {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
async _luckyDraw() {
|
async _luckyDraw() {
|
||||||
|
await this.get_lastReq("lottery")
|
||||||
try {
|
try {
|
||||||
let options = {
|
let options = {
|
||||||
fn: "抽奖",
|
fn: "抽奖",
|
||||||
method: "post",
|
method: "post",
|
||||||
url: `https://next.gacmotor.com/app/activity/shopDraw/luckyDraw`,
|
//https://next.gacmotor.com/app/activity/shopDraw/luckyDraw
|
||||||
|
url: `https://next.gacmotor.com/app/activity/shopDraw/luckyDrawHc`,
|
||||||
headers: this._getHeaders("post"),
|
headers: this._getHeaders("post"),
|
||||||
body: JSON.stringify({ "activityCode": "shop-draw", "repeatcheck": true })
|
//body: JSON.stringify({ "activityCode": "shop-draw", "repeatcheck": true })
|
||||||
|
body: JSON.stringify({
|
||||||
|
"activityCode": "shop-draw",
|
||||||
|
"repeatcheck": true,
|
||||||
|
"lastReq": this.lotteryRequestId
|
||||||
|
})
|
||||||
}
|
}
|
||||||
let { body: result } = await httpRequest(options);
|
let { body: result } = await httpRequest(options);
|
||||||
//console.log(options);
|
//console.log(options);
|
||||||
@@ -900,14 +914,53 @@ class UserInfo {
|
|||||||
console.log(e);
|
console.log(e);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
async get_lastReq(event) {
|
||||||
async _signIn () {
|
|
||||||
try {
|
|
||||||
let options = {
|
let options = {
|
||||||
|
fn: "获取参数",
|
||||||
|
method: "get",
|
||||||
|
url: `https://next.gacmotor.com/app/app-api/common/hcRiskControl/getRiskLevelCommon?eventId=${event}`,
|
||||||
|
headers: this._getHeaders("get"),
|
||||||
|
|
||||||
|
}
|
||||||
|
let { body: result } = await httpRequest(options);
|
||||||
|
//console.log(options);
|
||||||
|
result = JSON.parse(result);
|
||||||
|
//console.log(result);
|
||||||
|
if (result.resultCode == "0") {
|
||||||
|
if (event == "signIn") {
|
||||||
|
this.signInCaptchaId = result.data.captchaId
|
||||||
|
this.signInRequestId = result.data.requestId
|
||||||
|
}
|
||||||
|
if (event == "lottery") {
|
||||||
|
this.lotteryRequestId = result.data.requestId
|
||||||
|
}
|
||||||
|
if (event == "share") {
|
||||||
|
this.shareCaptchaId = result.data.captchaId
|
||||||
|
this.shareRequestId = result.data.requestId
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
console.log(`❌${options.fn}状态[${result.resultMsg}]`);
|
||||||
|
console.log(JSON.stringify(result));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
async _signIn() {
|
||||||
|
await this.get_lastReq("signIn")
|
||||||
|
try {
|
||||||
|
/*let options = {
|
||||||
fn: "签到执行",
|
fn: "签到执行",
|
||||||
method: "get",
|
method: "get",
|
||||||
url: `https://next.gacmotor.com/app/app-api/sign/submit`,
|
url: `https://next.gacmotor.com/app/app-api/sign/submit`,
|
||||||
headers: this._getHeaders("get"),
|
headers: this._getHeaders("get"),
|
||||||
|
}*/
|
||||||
|
let options = {
|
||||||
|
fn: "签到执行",
|
||||||
|
method: "post",
|
||||||
|
url: `https://next.gacmotor.com/app/app-api/sign/submitHc`,
|
||||||
|
headers: this._getHeaders("post"),
|
||||||
|
body: JSON.stringify({
|
||||||
|
"captchaId": this.signInCaptchaId,
|
||||||
|
"lastReq": this.signInRequestId
|
||||||
|
})
|
||||||
}
|
}
|
||||||
let { body: result } = await httpRequest(options);
|
let { body: result } = await httpRequest(options);
|
||||||
//console.log(options);
|
//console.log(options);
|
||||||
@@ -925,13 +978,21 @@ class UserInfo {
|
|||||||
}
|
}
|
||||||
|
|
||||||
async _forward(postId) {
|
async _forward(postId) {
|
||||||
|
await this.get_lastReq("share")
|
||||||
try {
|
try {
|
||||||
let options = {
|
/*let options = {
|
||||||
fn: "转发",
|
fn: "转发",
|
||||||
method: "post",
|
method: "post",
|
||||||
url: `https://next.gacmotor.com/app/community-api/community/api/post/forward`,
|
url: `https://next.gacmotor.com/app/community-api/community/api/post/forward`,
|
||||||
headers: this._getHeaders("post"),
|
headers: this._getHeaders("post"),
|
||||||
body: JSON.stringify({ "postId": postId })
|
body: JSON.stringify({ "postId": postId })
|
||||||
|
}*/
|
||||||
|
let options = {
|
||||||
|
fn: "转发",
|
||||||
|
method: "post",
|
||||||
|
url: `https://next.gacmotor.com/app/community-api/community/api/post/forwardHc`,
|
||||||
|
headers: this._getHeaders("post"),
|
||||||
|
body: JSON.stringify({ "postId": postId, "captchaId": this.shareCaptchaId, "lastReq": this.shareRequestId })
|
||||||
}
|
}
|
||||||
let { body: result } = await httpRequest(options);
|
let { body: result } = await httpRequest(options);
|
||||||
//console.log(options);
|
//console.log(options);
|
||||||
|
|||||||
Reference in New Issue
Block a user