xiongzhu %!s(int64=2) %!d(string=hai) anos
pai
achega
5e75546155
Modificáronse 1 ficheiros con 7 adicións e 10 borrados
  1. 7 10
      routes/api/index.js

+ 7 - 10
routes/api/index.js

@@ -81,17 +81,14 @@ module.exports = async function (fastify, opts) {
                                 price = await rows[1].innerText()
                             }
                             console.log(asin + ' start')
-                            let sif = await axios.get(
-                                'https://www.sif.com/api/search/asinFlowOverview',
-                                {
-                                    params: {
-                                        country: 'US',
-                                        asin,
-                                        _t: new Date().getTime()
-                                    }
+                            let sif = await axios.get('https://www.sif.com/api/search/asinFlowOverview', {
+                                params: {
+                                    country: 'US',
+                                    asin,
+                                    _t: new Date().getTime()
                                 },
-                                { timeout: 5000 }
-                            )
+                                timeout: 5000
+                            })
                             console.log(asin + ' end')
                             res.push({ text, href, price, asin, data: sif.data.data })
                             console.log(res.length + '/' + items.length)