mirror of
https://github.com/smallfawn/QLScriptPublic.git
synced 2025-12-17 23:35:02 +08:00
Update kangshifu.js
This commit is contained in:
@@ -24,12 +24,13 @@ const $ = new Env("康师傅");
|
|||||||
let ckName = `wxkangshifuwxid`;
|
let ckName = `wxkangshifuwxid`;
|
||||||
const strSplitor = "#";
|
const strSplitor = "#";
|
||||||
const envSplitor = ["&", "\n"];
|
const envSplitor = ["&", "\n"];
|
||||||
const notify = $.isNode() ? require("../sendNotify") : "";
|
const notify = $.isNode() ? require("./sendNotify") : "";
|
||||||
const axios = require("axios");
|
const axios = require("axios");
|
||||||
const defaultUserAgent = "Mozilla/5.0 (iPhone; CPU iPhone OS 16_5 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148 MicroMessenger/8.0.31(0x18001e31) NetType/WIFI Language/zh_CN miniProgram"
|
const defaultUserAgent = "Mozilla/5.0 (iPhone; CPU iPhone OS 16_5 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148 MicroMessenger/8.0.31(0x18001e31) NetType/WIFI Language/zh_CN miniProgram"
|
||||||
let luflytoken = process.env.luflytoken || ""
|
let luflytoken = process.env.luflytoken || ""
|
||||||
let wxkangshifuwxid = process.env.wxkangshifuwxid || ""
|
let wxkangshifuwxid = process.env.wxkangshifuwxid || ""
|
||||||
let wxcenter = 'http://w.smallfawn.top:5789'
|
let wxcenter = 'http://w.smallfawn.top:5789'
|
||||||
|
let appid = 'wx54f3e6a00f7973a7'
|
||||||
class Public {
|
class Public {
|
||||||
async request(options) {
|
async request(options) {
|
||||||
return await axios.request(options);
|
return await axios.request(options);
|
||||||
@@ -52,7 +53,7 @@ class Task extends Public {
|
|||||||
'Content-Type': 'application/json'
|
'Content-Type': 'application/json'
|
||||||
},
|
},
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
data: { "luflyKey": "" + luflytoken, "wxid": "" + wxkangshifuwxid, "appid": "wxb26a710e583b05dc" }
|
data: { "luflyKey": "" + luflytoken, "wxid": "" + wxkangshifuwxid, "appid": ""+appid }
|
||||||
}
|
}
|
||||||
let { data: result } = await this.request(options);
|
let { data: result } = await this.request(options);
|
||||||
if (result.status) {
|
if (result.status) {
|
||||||
@@ -106,9 +107,8 @@ class Task extends Public {
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
async run() {
|
async run(){
|
||||||
await this.getcode()
|
await this.getcode()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user