From 9e5dc7072a9e1db9b7fdd370088c6f8a1e8f1cb9 Mon Sep 17 00:00:00 2001 From: jay Date: Mon, 17 Sep 2018 19:59:39 +0800 Subject: [PATCH] update --- background.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/background.js b/background.js index ca2b0da..47dabe0 100644 --- a/background.js +++ b/background.js @@ -264,6 +264,7 @@ const checkDonate = async (loginName = null, opayid = null, join = false) => { if (typeof loginName !== 'string' || loginName.trim().length === 0) return null if (typeof opayid !== 'string' || opayid.trim().length === 0) return null let url = `https://payment.opay.tw/Broadcaster/CheckDonate/${opayid}` + console.log('check opay url ::::: ', url) let db = await DB.connect() // console.log('check donate :::: ', loginName, opayid) @@ -280,7 +281,8 @@ const checkDonate = async (loginName = null, opayid = null, join = false) => { url, data: {}, headers: { - 'Content-Type': 'application/json' + 'Content-Type': 'application/json', + 'User-Agent': 'Mozilla/5.0 (X11; Linux x86_64; rv:63.0) Gecko/20100101 Firefox/63.0' }, method: 'post' })