904118851 8 月之前
父节点
当前提交
a98982fcab
共有 7 个文件被更改,包括 193 次插入12 次删除
  1. 1 0
      2_PRODUCT_FACTORY/collect_hy_book.js
  2. 1 1
      2_PRODUCT_FACTORY/hy_batch_factory.js
  3. 二进制
      dump.rdb
  4. 95 0
      logs/combined.log
  5. 81 0
      logs/out.log
  6. 1 1
      src/api/hy/hy_search_book.js
  7. 14 10
      tg_factory_main.js

+ 1 - 0
2_PRODUCT_FACTORY/collect_hy_book.js

@@ -4,6 +4,7 @@ let hy_search_book = require('../src/api/hy/hy_search_book')
 CMD.runTask = async function(data){
     // console.log("执行一个寻找黑岩任务:",data)
     let book_info = await  hy_search_book.search_id(data.book_id)
+    
     let book_name = book_info.rows[0].name;
     let typeDesc = book_info.rows[0].typeDesc; //'中篇',
     let words = book_info.rows[0].words;  //多少字

+ 1 - 1
2_PRODUCT_FACTORY/hy_batch_factory.js

@@ -61,7 +61,7 @@ async function processTask(){
         }
         let FilterConfig = await redis_help.getKeyValue("FilterConfig")
         FilterConfig = JSON.parse(FilterConfig)
-        result = await filter_data_controllers.getFilterDataByStatusAndLimit({ status: 0 , tg_platform_id: config.platform_heiyan },500,"DESC");
+        result = await filter_data_controllers.getFilterDataByStatusAndLimit({ status: 0 , tg_platform_id: config.platform_heiyan },100,"DESC");
         if(result.success){
             let ProductIds = []
             let FilterList = []

二进制
dump.rdb


+ 95 - 0
logs/combined.log

@@ -399,6 +399,7 @@
 2024-12-20T17:27:48: 
 2024-12-20T17:27:49: Connected to Redis
 >>>>>>> 4b2d32eecb26036a212aab899a36552925f30307
+<<<<<<< HEAD
 2024-12-20T17:31:28: 
 2024-12-20T17:31:28: > heiyan@1.0.0 start
 2024-12-20T17:31:28: > node tg_factory_main.js
@@ -419,3 +420,97 @@
 2024-12-20T18:03:01: > node tg_factory_main.js
 2024-12-20T18:03:01: 
 2024-12-20T18:03:04: Connected to Redis
+=======
+2024-12-20T18:05:21: 
+2024-12-20T18:05:21: > heiyan@1.0.0 start
+2024-12-20T18:05:21: > node tg_factory_main.js
+2024-12-20T18:05:21: 
+2024-12-20T18:05:24: Connected to Redis
+2024-12-20T18:06:37: 
+2024-12-20T18:06:37: > heiyan@1.0.0 start
+2024-12-20T18:06:37: > node tg_factory_main.js
+2024-12-20T18:06:37: 
+2024-12-20T18:06:40: Connected to Redis
+2024-12-20T18:08:08: 
+2024-12-20T18:08:08: > heiyan@1.0.0 start
+2024-12-20T18:08:08: > node tg_factory_main.js
+2024-12-20T18:08:08: 
+2024-12-20T18:08:56: Connected to Redis
+2024-12-20T18:08:56: data: {
+2024-12-20T18:08:56:   total: '1',
+2024-12-20T18:08:56:   rows: [
+2024-12-20T18:08:56:     {
+2024-12-20T18:08:56:       id: '1868479666362478594',
+2024-12-20T18:08:56:       userId: '1821769305411235842',
+2024-12-20T18:08:56:       name: '天价彩礼',
+2024-12-20T18:08:56:       icon: 1,
+2024-12-20T18:08:56:       open: true,
+2024-12-20T18:08:56:       status: 0,
+2024-12-20T18:08:56:       tags: '重生,都市',
+2024-12-20T18:08:56:       group: null,
+2024-12-20T18:08:56:       sortName: '现言',
+2024-12-20T18:08:56:       userName: '十一',
+2024-12-20T18:08:56:       cpName: null,
+2024-12-20T18:08:56:       cpId: null,
+2024-12-20T18:08:56:       contractId: '1868581958855045121',
+2024-12-20T18:08:56:       type: 1,
+2024-12-20T18:08:56:       typeDesc: '短篇',
+2024-12-20T18:08:56:       classify: 1,
+2024-12-20T18:08:56:       classifyStr: '男频',
+2024-12-20T18:08:56:       words: 8511,
+2024-12-20T18:08:56:       cnBookId: '0',
+2024-12-20T18:08:56:       cnBookName: null,
+2024-12-20T18:08:56:       createTime: '2024-12-16 10:14:02',
+2024-12-20T18:08:56:       updateTime: '2024-12-16 17:00:30',
+2024-12-20T18:08:56:       openTime: '2024-12-16 17:00:30',
+2024-12-20T18:08:56:       todayOpen: false,
+2024-12-20T18:08:56:       price: null,
+2024-12-20T18:08:56:       isort: 39,
+2024-12-20T18:08:56:       itags: '重生,都市'
+2024-12-20T18:08:56:     }
+2024-12-20T18:08:56:   ],
+2024-12-20T18:08:56:   code: 0,
+2024-12-20T18:08:56:   msg: null
+2024-12-20T18:08:56: }
+2024-12-20T18:09:29: 
+2024-12-20T18:09:29: > heiyan@1.0.0 start
+2024-12-20T18:09:29: > node tg_factory_main.js
+2024-12-20T18:09:29: 
+2024-12-20T18:09:31: Connected to Redis
+2024-12-20T18:09:31: data: {
+2024-12-20T18:09:31:   total: '1',
+2024-12-20T18:09:31:   rows: [
+2024-12-20T18:09:31:     {
+2024-12-20T18:09:31:       id: '1868479666362478594',
+2024-12-20T18:09:31:       userId: '1821769305411235842',
+2024-12-20T18:09:31:       name: '天价彩礼',
+2024-12-20T18:09:31:       icon: 1,
+2024-12-20T18:09:31:       open: true,
+2024-12-20T18:09:31:       status: 0,
+2024-12-20T18:09:31:       tags: '重生,都市',
+2024-12-20T18:09:31:       group: null,
+2024-12-20T18:09:31:       sortName: '现言',
+2024-12-20T18:09:31:       userName: '十一',
+2024-12-20T18:09:31:       cpName: null,
+2024-12-20T18:09:31:       cpId: null,
+2024-12-20T18:09:31:       contractId: '1868581958855045121',
+2024-12-20T18:09:31:       type: 1,
+2024-12-20T18:09:31:       typeDesc: '短篇',
+2024-12-20T18:09:31:       classify: 1,
+2024-12-20T18:09:31:       classifyStr: '男频',
+2024-12-20T18:09:31:       words: 8511,
+2024-12-20T18:09:31:       cnBookId: '0',
+2024-12-20T18:09:31:       cnBookName: null,
+2024-12-20T18:09:31:       createTime: '2024-12-16 10:14:02',
+2024-12-20T18:09:31:       updateTime: '2024-12-16 17:00:30',
+2024-12-20T18:09:31:       openTime: '2024-12-16 17:00:30',
+2024-12-20T18:09:31:       todayOpen: false,
+2024-12-20T18:09:31:       price: null,
+2024-12-20T18:09:31:       isort: 39,
+2024-12-20T18:09:31:       itags: '重生,都市'
+2024-12-20T18:09:31:     }
+2024-12-20T18:09:31:   ],
+2024-12-20T18:09:31:   code: 0,
+2024-12-20T18:09:31:   msg: null
+2024-12-20T18:09:31: }
+>>>>>>> 8d6034809d0b985049429225ec0cd0870dc94beb

+ 81 - 0
logs/out.log

@@ -1,6 +1,7 @@
 <<<<<<< HEAD
 <<<<<<< HEAD
 <<<<<<< HEAD
+<<<<<<< HEAD
 2024-12-18T11:22:42: 
 2024-12-18T11:22:42: > heiyan@1.0.0 start
 2024-12-18T11:22:42: > node tg_factory_main.js
@@ -373,3 +374,83 @@
 2024-12-20T18:03:01: > node tg_factory_main.js
 2024-12-20T18:03:01: 
 2024-12-20T18:03:04: Connected to Redis
+=======
+2024-12-20T18:08:56: Connected to Redis
+2024-12-20T18:08:56: data: {
+2024-12-20T18:08:56:   total: '1',
+2024-12-20T18:08:56:   rows: [
+2024-12-20T18:08:56:     {
+2024-12-20T18:08:56:       id: '1868479666362478594',
+2024-12-20T18:08:56:       userId: '1821769305411235842',
+2024-12-20T18:08:56:       name: '天价彩礼',
+2024-12-20T18:08:56:       icon: 1,
+2024-12-20T18:08:56:       open: true,
+2024-12-20T18:08:56:       status: 0,
+2024-12-20T18:08:56:       tags: '重生,都市',
+2024-12-20T18:08:56:       group: null,
+2024-12-20T18:08:56:       sortName: '现言',
+2024-12-20T18:08:56:       userName: '十一',
+2024-12-20T18:08:56:       cpName: null,
+2024-12-20T18:08:56:       cpId: null,
+2024-12-20T18:08:56:       contractId: '1868581958855045121',
+2024-12-20T18:08:56:       type: 1,
+2024-12-20T18:08:56:       typeDesc: '短篇',
+2024-12-20T18:08:56:       classify: 1,
+2024-12-20T18:08:56:       classifyStr: '男频',
+2024-12-20T18:08:56:       words: 8511,
+2024-12-20T18:08:56:       cnBookId: '0',
+2024-12-20T18:08:56:       cnBookName: null,
+2024-12-20T18:08:56:       createTime: '2024-12-16 10:14:02',
+2024-12-20T18:08:56:       updateTime: '2024-12-16 17:00:30',
+2024-12-20T18:08:56:       openTime: '2024-12-16 17:00:30',
+2024-12-20T18:08:56:       todayOpen: false,
+2024-12-20T18:08:56:       price: null,
+2024-12-20T18:08:56:       isort: 39,
+2024-12-20T18:08:56:       itags: '重生,都市'
+2024-12-20T18:08:56:     }
+2024-12-20T18:08:56:   ],
+2024-12-20T18:08:56:   code: 0,
+2024-12-20T18:08:56:   msg: null
+2024-12-20T18:08:56: }
+2024-12-20T18:09:29: 
+2024-12-20T18:09:29: > heiyan@1.0.0 start
+2024-12-20T18:09:29: > node tg_factory_main.js
+2024-12-20T18:09:29: 
+2024-12-20T18:09:31: Connected to Redis
+2024-12-20T18:09:31: data: {
+2024-12-20T18:09:31:   total: '1',
+2024-12-20T18:09:31:   rows: [
+2024-12-20T18:09:31:     {
+2024-12-20T18:09:31:       id: '1868479666362478594',
+2024-12-20T18:09:31:       userId: '1821769305411235842',
+2024-12-20T18:09:31:       name: '天价彩礼',
+2024-12-20T18:09:31:       icon: 1,
+2024-12-20T18:09:31:       open: true,
+2024-12-20T18:09:31:       status: 0,
+2024-12-20T18:09:31:       tags: '重生,都市',
+2024-12-20T18:09:31:       group: null,
+2024-12-20T18:09:31:       sortName: '现言',
+2024-12-20T18:09:31:       userName: '十一',
+2024-12-20T18:09:31:       cpName: null,
+2024-12-20T18:09:31:       cpId: null,
+2024-12-20T18:09:31:       contractId: '1868581958855045121',
+2024-12-20T18:09:31:       type: 1,
+2024-12-20T18:09:31:       typeDesc: '短篇',
+2024-12-20T18:09:31:       classify: 1,
+2024-12-20T18:09:31:       classifyStr: '男频',
+2024-12-20T18:09:31:       words: 8511,
+2024-12-20T18:09:31:       cnBookId: '0',
+2024-12-20T18:09:31:       cnBookName: null,
+2024-12-20T18:09:31:       createTime: '2024-12-16 10:14:02',
+2024-12-20T18:09:31:       updateTime: '2024-12-16 17:00:30',
+2024-12-20T18:09:31:       openTime: '2024-12-16 17:00:30',
+2024-12-20T18:09:31:       todayOpen: false,
+2024-12-20T18:09:31:       price: null,
+2024-12-20T18:09:31:       isort: 39,
+2024-12-20T18:09:31:       itags: '重生,都市'
+2024-12-20T18:09:31:     }
+2024-12-20T18:09:31:   ],
+2024-12-20T18:09:31:   code: 0,
+2024-12-20T18:09:31:   msg: null
+2024-12-20T18:09:31: }
+>>>>>>> 8d6034809d0b985049429225ec0cd0870dc94beb

+ 1 - 1
src/api/hy/hy_search_book.js

@@ -34,7 +34,7 @@ CMD.just_do_it = async function(bookId){
     return await axios.post(url, {} , {headers:headers})
     .then(response => {
         return response.data.data
-        // console.log(response.data.data); // 输出结果
+        console.log(response.data.data); // 输出结果
     })
     .catch(error => {
         console.error('Error:', error.message); // 输出错误信息

+ 14 - 10
tg_factory_main.js

@@ -6,7 +6,8 @@ const helper = require('./src/helper');
 const HttpClient = require('./src/HttpClient');
 const redis_help = require('./src/use_redis'); 
 const tools = require('./tools');
-
+const config = require('./etc/config.json')
+const hy_search_book = require('./src/api/hy/hy_search_book'); 
 // function getPlatformInfoByI(PlatformConfig,tg_platform_id){
 //     for (let index = 0; index < PlatformConfig.length; index++) {
 //         const element = PlatformConfig[index];
@@ -28,17 +29,20 @@ const tools = require('./tools');
 //     return null
 // }
 let isInit = false
-redis_help.connect( async (results)=>{
-    if(results){
-        if(isInit){
-            return
+// config.isDebug
+if(true){
+    redis_help.connect( async (results)=>{
+        if(results){
+            let data = await hy_search_book.search_id("1868479666362478594")
+            console.log("data:",data)
+            isInit = true
+            // main()
+    
+    
         }
-        isInit = true
-        // main()
-
+    })
+}
 
-    }
-})
 
         //  let response =  helper.resolveDomain("clipvideoup.s6kuwan.com")
         //  console.log("response:",response)