Removed console.log and changed referrer url
Showing
1 changed file
with
6 additions
and
6 deletions
| ... | @@ -194,7 +194,7 @@ async function runGPTTurbo(req, res) { | ... | @@ -194,7 +194,7 @@ async function runGPTTurbo(req, res) { |
| 194 | const validate = await validation(aiwp_app_id, req, res); | 194 | const validate = await validation(aiwp_app_id, req, res); |
| 195 | if(!validate) return; | 195 | if(!validate) return; |
| 196 | const { IS_FREE_USER, aiwp_logged_in, TRIED_USAGE} = validate; | 196 | const { IS_FREE_USER, aiwp_logged_in, TRIED_USAGE} = validate; |
| 197 | console.log({validate}) | 197 | |
| 198 | if (moderation.data.results[0].flagged) { | 198 | if (moderation.data.results[0].flagged) { |
| 199 | res.json({ | 199 | res.json({ |
| 200 | success: false, | 200 | success: false, |
| ... | @@ -338,7 +338,7 @@ async function authenticate(params) { | ... | @@ -338,7 +338,7 @@ async function authenticate(params) { |
| 338 | "Content-Type": "application/json" | 338 | "Content-Type": "application/json" |
| 339 | }, | 339 | }, |
| 340 | body: JSON.stringify(params), | 340 | body: JSON.stringify(params), |
| 341 | referrer: "https://api.ai-pro.org" | 341 | referrer: "https://chatgpt.ai-pro.org" |
| 342 | }); | 342 | }); |
| 343 | return await data.json(); | 343 | return await data.json(); |
| 344 | } | 344 | } |
| ... | @@ -350,7 +350,7 @@ async function getLimitedUsage(params) { | ... | @@ -350,7 +350,7 @@ async function getLimitedUsage(params) { |
| 350 | "Content-Type": "application/json" | 350 | "Content-Type": "application/json" |
| 351 | }, | 351 | }, |
| 352 | body: JSON.stringify(params), | 352 | body: JSON.stringify(params), |
| 353 | referrer: "https://api.ai-pro.org" | 353 | referrer: "https://chatgpt.ai-pro.org" |
| 354 | }); | 354 | }); |
| 355 | return await data.json(); | 355 | return await data.json(); |
| 356 | } | 356 | } |
| ... | @@ -361,7 +361,7 @@ async function getUsage(params) { | ... | @@ -361,7 +361,7 @@ async function getUsage(params) { |
| 361 | "Content-Type": "application/json" | 361 | "Content-Type": "application/json" |
| 362 | }, | 362 | }, |
| 363 | body: JSON.stringify(params), | 363 | body: JSON.stringify(params), |
| 364 | referrer: "https://api.ai-pro.org" | 364 | referrer: "https://chatgpt.ai-pro.org" |
| 365 | }); | 365 | }); |
| 366 | return await data.json(); | 366 | return await data.json(); |
| 367 | } | 367 | } |
| ... | @@ -372,7 +372,7 @@ async function setUsage(params) { | ... | @@ -372,7 +372,7 @@ async function setUsage(params) { |
| 372 | "Content-Type": "application/json" | 372 | "Content-Type": "application/json" |
| 373 | }, | 373 | }, |
| 374 | body: JSON.stringify(params), | 374 | body: JSON.stringify(params), |
| 375 | referrer: "https://api.ai-pro.org" | 375 | referrer: "https://chatgpt.ai-pro.org" |
| 376 | }); | 376 | }); |
| 377 | fetch(`${hostapi}/e/set-chat-usage`, { | 377 | fetch(`${hostapi}/e/set-chat-usage`, { |
| 378 | method: "POST", | 378 | method: "POST", |
| ... | @@ -380,7 +380,7 @@ async function setUsage(params) { | ... | @@ -380,7 +380,7 @@ async function setUsage(params) { |
| 380 | "Content-Type": "application/json" | 380 | "Content-Type": "application/json" |
| 381 | }, | 381 | }, |
| 382 | body: JSON.stringify(params), | 382 | body: JSON.stringify(params), |
| 383 | referrer: "https://api.ai-pro.org" | 383 | referrer: "https://chatgpt.ai-pro.org" |
| 384 | }); | 384 | }); |
| 385 | } | 385 | } |
| 386 | 386 | ... | ... |
-
Please register or sign in to post a comment