| 127 | } |
| 128 | //红包小银行 |
| 129 | function hbxxh(timeout = 0) { |
| 130 | return new Promise((resolve) => { |
| 131 | |
| 132 | |
| 133 | let url = { |
| 134 | url: `https://service-yy.jconnect.faw-vw.com/redpackbank/prize/getPrize`, |
| 135 | headers: { |
| 136 | "Host": "service-yy.jconnect.faw-vw.com", |
| 137 | "pragma": "no-cache", |
| 138 | "cache-control": "no-cache", |
| 139 | "accept": "application/json, text/plain, */*", |
| 140 | "origin": "https://serviceui-yy-ui.jconnect.faw-vw.com", |
| 141 | "sec-fetch-dest": "empty", |
| 142 | "token": `${JETTA_token}`, |
| 143 | }, |
| 144 | |
| 145 | }; |
| 146 | |
| 147 | $.get( |
| 148 | url, |
| 149 | async (err, resp, data) => { |
| 150 | try { |
| 151 | data = JSON.parse(data); |
| 152 | |
| 153 | if (data.status == 'SUCCEED') { |
| 154 | |
| 155 | console.log("\n【获得】: " + data.data.todayPrize); |
| 156 | |
| 157 | |
| 158 | $.message += "\n【获得】: " + data.data.data.data.todayPrize + '元' |
| 159 | |
| 160 | |
| 161 | } else { |
| 162 | console.log('\n【 ' + data.errorMessage + '】') |
| 163 | |
| 164 | $.message += '\n红包小银行【 ' + data.errorMessage + '】' |
| 165 | |
| 166 | } |
| 167 | } catch (e) { |
| 168 | } finally { |
| 169 | resolve(); |
| 170 | } |
| 171 | }, |
| 172 | timeout |
| 173 | ); |
| 174 | }); |
| 175 | } |
| 176 | function getUserInfo(timeout = 0) { |
| 177 | return new Promise((resolve) => { |
| 178 | |