904118851 4 сар өмнө
parent
commit
5baf8e8a77

+ 5 - 5
5_CREATE_LINK_FACTORY/qm_mf_new_create_link.js

@@ -58,8 +58,8 @@ CMD.runTask = async function (data,main_info,PlatformInfo,call_back) {
         is_platform_postback:true,
         postback_rule_id: call_back_template_id, //# 回传规则 value
         // first_panel_id:recharge_template_id, //首充模板id
-        repeated_panel_id:f_recharge_template_id,
-        recharge_panel_id:recharge_template_id
+        // repeated_panel_id:f_recharge_template_id,
+        // recharge_panel_id:1
         // repeated_panel_id:f_recharge_template_id, //# 复充模板id
     }
     
@@ -98,10 +98,10 @@ CMD.runTask = async function (data,main_info,PlatformInfo,call_back) {
         console.log("finalUrl:",finalUrl)
 
         let response =  await client.post(finalUrl,postData)
-        if(response.code!=0){
+        if(response.data.code!=0){
             throw response
         }
-        let n_data = response.data
+        let n_data = response.data.data
         console.log("n_data:",n_data)
         let promotion_id = n_data.id
         let promotion_info = n_data.link
@@ -111,7 +111,7 @@ CMD.runTask = async function (data,main_info,PlatformInfo,call_back) {
         data.start_page = start_page
         data.start_param = start_param
         data.promotion_id = promotion_id
-        // call_back(data,null)
+        call_back(data,null)
     } catch (error) {
         call_back(data,error)
         console.error('请求错误:', error);

BIN
dump.rdb


+ 1 - 1
src/api/fq/fq_search_book.js

@@ -91,7 +91,7 @@ CMD.search_new_id = async function(bookId,call_back){
           'sec-fetch-mode': 'cors',
           'sec-fetch-site': 'same-origin',
           'x-secsdk-csrf-token': '00010000000165946eed4d812d087c4148a726264fe223e04f1c6e23eb1a0ebb30e517cbcf91183afa24b99abee3',
-          'cookie': 'store-region=cn-gd; store-region-src=uid; is_staff_user=false; passport_csrf_token=4d1582c647abf363099fe8a4f975751e; passport_csrf_token_default=4d1582c647abf363099fe8a4f975751e; s_v_web_id=verify_m8fcj8us_JZLlXrhR_OZsr_42Uz_BjhU_sRduBwB5eG8l; n_mh=-Akptc0OjS9zIJQaCBO_o6uzJlp3wAItgZeldsCLFeU; sid_guard=6cda0bf1f5b9891a648e6193dbd4b600%7C1745982840%7C5184000%7CSun%2C+29-Jun-2025+03%3A14%3A00+GMT; uid_tt=b3bebe7098b5f11e07d1d5dd8238d822; uid_tt_ss=b3bebe7098b5f11e07d1d5dd8238d822; sid_tt=6cda0bf1f5b9891a648e6193dbd4b600; sessionid=6cda0bf1f5b9891a648e6193dbd4b600; sessionid_ss=6cda0bf1f5b9891a648e6193dbd4b600'
+          'cookie': 'sid_guard=9878152d005c8794936b56fcf0525d76%7C1746093897%7C5184000%7CMon%2C+30-Jun-2025+10%3A04%3A57+GMT; sessionid=9878152d005c8794936b56fcf0525d76'
       },
       // 添加额外的 axios 配置
       timeout: 5000, // 5秒超时

+ 4 - 4
tg_factory_main.js

@@ -32,11 +32,11 @@ function getMainInfoById(MainConfig,main_id){
 }
 let isInit = false
 // config.isDebug
-if(!config.isDebug){
+if(config.isDebug){
     redis_help.connect( async (results)=>{
         if(results){
             // let data =  await require('./src/api/fq/fq_search_book').search_new_id('7156137614049807396')
-        
+            // console.log("data:",data)
             // let data = await require('./src/api/fq/fq_search_book').search_mf_new_id('7375572126402612286')
             // console.log("data:",data)
             // require('./src/api/dz/dz_login').login()
@@ -66,8 +66,8 @@ if(!config.isDebug){
                 //     redis_help.setKeyValue("qi_mao_token",headers['n-token'])
 
                 // })
-                let qm_book_data =  await require('./src/api/qm/qm_search_book').search_id('396740')
-                console.log("qm_book_data:",qm_book_data)
+                // let qm_book_data =  await require('./src/api/qm/qm_search_book').search_id('396740')
+                // console.log("qm_book_data:",qm_book_data)
           
 
             // let totalWordSize = data.rows[0].totalWordSize