haptear 3 years ago
parent
commit
5d008d7ebe
  1. 4
      1024cgzjg.js
  2. 2
      package.json

4
1024cgzjg.js

@ -7,7 +7,7 @@ const $ = new Env("猜歌赚奖金");
let envSplitor = ['\n', '@', '&'] let envSplitor = ['\n', '@', '&']
let httpResult, httpReq, httpResp let httpResult, httpReq, httpResp
// process.env.cgzjgCookie = '55b93d6f38ad289a96a7c0897b8286f8' // process.env.cgzjgCookie = '23788d36ea6510e04caef01d89ade0ca'
let userCookie = ($.isNode() ? process.env.cgzjgCookie : $.getdata('cgzjgCookie')) || ''; let userCookie = ($.isNode() ? process.env.cgzjgCookie : $.getdata('cgzjgCookie')) || '';
let userList = [] let userList = []
let cacheQues=JSON.parse($.getdata("cgzjg") || '{}'); let cacheQues=JSON.parse($.getdata("cgzjg") || '{}');
@ -32,7 +32,7 @@ class UserInfo {
async draw () { async draw () {
try { try {
let url = `https://api-ds.52cdm.com/api/v1/user/cash` let url = `https://api-ds.52cdm.com/api/v1/user/cash`
let body = `type=cash_one` let body = `type=cash_two`
let urlObject = populateUrlObject(url, this.token, body) let urlObject = populateUrlObject(url, this.token, body)
await httpRequest('post', urlObject) await httpRequest('post', urlObject)
let result = httpResult; let result = httpResult;

2
package.json

@ -22,6 +22,8 @@
"date-fns": "^2.22.1", "date-fns": "^2.22.1",
"dotenv": "^10.0.0", "dotenv": "^10.0.0",
"download": "^8.0.0", "download": "^8.0.0",
"global-tunnel": "^1.2.0",
"global-tunnel-ng": "^2.7.1",
"got": "^11.5.1", "got": "^11.5.1",
"http-proxy-agent": "^5.0.0", "http-proxy-agent": "^5.0.0",
"http-server": "^0.12.3", "http-server": "^0.12.3",

Loading…
Cancel
Save