xiongzhu 2 ani în urmă
părinte
comite
b28e2bf7e2
2 a modificat fișierele cu 4 adăugiri și 4 ștergeri
  1. 2 2
      routes/api/index.js
  2. 2 2
      test.js

+ 2 - 2
routes/api/index.js

@@ -4,7 +4,7 @@ const axios = require('axios').default
 
 module.exports = async function (fastify, opts) {
     fastify.post('/search', async function (request, reply) {
-        let response = await axios.post('https://www.sif.com/api/user/login?_t=' + new Date().getTime(), {
+        let response = await axios.post('https://www.deeperloop.com/api/user/login?_t=' + new Date().getTime(), {
             phone: '18390881087',
             password: 'Gaole1401'
         })
@@ -68,7 +68,7 @@ module.exports = async function (fastify, opts) {
                                 price = await rows[1].innerText()
                             }
 
-                            let sif = await axios.get('https://www.sif.com/api/search/asinFlowOverview', {
+                            let sif = await axios.get('https://www.deeperloop.com/api/search/asinFlowOverview', {
                                 params: {
                                     country: 'US',
                                     asin,

+ 2 - 2
test.js

@@ -3,7 +3,7 @@ const axios = require('axios').default
 const fs = require('fs')
 
 ;(async () => {
-    let response = await axios.post('https://www.sif.com/api/user/login?_t=' + new Date().getTime(), {
+    let response = await axios.post('https://www.deeperloop.com/api/user/login?_t=' + new Date().getTime(), {
         phone: '18390881087',
         password: 'Gaole1401'
     })
@@ -59,7 +59,7 @@ const fs = require('fs')
             }
             let price = (await item.locator('.a-row').last().allInnerTexts()).join()
 
-            let sif = await axios.get('https://www.sif.com/api/search/asinFlowOverview', {
+            let sif = await axios.get('https://www.deeperloop.com/api/search/asinFlowOverview', {
                 params: {
                     country: 'US',
                     asin,