|
@@ -171,12 +171,15 @@ async function taskDraw() {
|
|
|
async function proxyTaskDraw() {
|
|
async function proxyTaskDraw() {
|
|
|
let data = {
|
|
let data = {
|
|
|
url: encodeURIComponent(`https://www.52pojie.cn/home.php?mod=task&do=draw&id=2&referer=https%3A%2F%2Fwww.52pojie.cn%2F.%2F%2F`),
|
|
url: encodeURIComponent(`https://www.52pojie.cn/home.php?mod=task&do=draw&id=2&referer=https%3A%2F%2Fwww.52pojie.cn%2F.%2F%2F`),
|
|
|
- headers: JSON.stringify(gCommonHeaders),
|
|
|
|
|
|
|
+ headers: gCommonHeaders,
|
|
|
body: ``,
|
|
body: ``,
|
|
|
};
|
|
};
|
|
|
let options = {
|
|
let options = {
|
|
|
url: 'http://192.168.0.137/RemoteBrowser/index.php',
|
|
url: 'http://192.168.0.137/RemoteBrowser/index.php',
|
|
|
body: JSON.stringify(data),
|
|
body: JSON.stringify(data),
|
|
|
|
|
+ headers: {
|
|
|
|
|
+ "content-type": "application/json; charset=utf-8"
|
|
|
|
|
+ }
|
|
|
};
|
|
};
|
|
|
let result = await magicJS.http.post(options).then(response => {
|
|
let result = await magicJS.http.post(options).then(response => {
|
|
|
try {
|
|
try {
|