Fix ads request
This commit is contained in:
parent
bcd8d91cb5
commit
e3f7421d01
@ -9,6 +9,7 @@ const secretSuffix = 'queivoo1ieNgae2e';
|
|||||||
const appId = 'p15';
|
const appId = 'p15';
|
||||||
const deviceId = '01b854631cb28e175ffbcccf6114acc3';
|
const deviceId = '01b854631cb28e175ffbcccf6114acc3';
|
||||||
const from = 'search';
|
const from = 'search';
|
||||||
|
const userAgent = 'Nomerogram/2.18 (iPhone; iOS 13.7; Scale/2.00)';
|
||||||
|
|
||||||
class NomerogramProvider {
|
class NomerogramProvider {
|
||||||
static async getGroups(number) {
|
static async getGroups(number) {
|
||||||
@ -22,7 +23,10 @@ class NomerogramProvider {
|
|||||||
console.log('secret: ', secret);
|
console.log('secret: ', secret);
|
||||||
|
|
||||||
let url = `${baseUrl}/group/list?from=${from}&carplate=${number}×tamp=${timestamp}&secret=${secret}&app_id=${appId}&device_id=${deviceId}`;
|
let url = `${baseUrl}/group/list?from=${from}&carplate=${number}×tamp=${timestamp}&secret=${secret}&app_id=${appId}&device_id=${deviceId}`;
|
||||||
let result = await fetch(utf8.encode(url), { timeout: 30000 });
|
let result = await fetch(utf8.encode(url), {
|
||||||
|
timeout: 25000,
|
||||||
|
headers: { 'User-Agent': userAgent }
|
||||||
|
});
|
||||||
let json = await result.json();
|
let json = await result.json();
|
||||||
|
|
||||||
if(!json.success) {
|
if(!json.success) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user