|
@ -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; |
|
|