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' })