|
@@ -7,26 +7,26 @@ const HttpClient = require('./src/HttpClient');
|
|
const redis_help = require('./src/use_redis');
|
|
const redis_help = require('./src/use_redis');
|
|
const tools = require('./tools');
|
|
const tools = require('./tools');
|
|
|
|
|
|
-function getPlatformInfoByI(PlatformConfig,tg_platform_id){
|
|
|
|
- for (let index = 0; index < PlatformConfig.length; index++) {
|
|
|
|
- const element = PlatformConfig[index];
|
|
|
|
- if(element.tg_platform_id==tg_platform_id){
|
|
|
|
- return element
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
- return null
|
|
|
|
-}
|
|
|
|
-
|
|
|
|
-function getMainInfoById(MainConfig,main_id){
|
|
|
|
- // console.log("MainConfig:",MainConfig)
|
|
|
|
- for (let index = 0; index < MainConfig.length; index++) {
|
|
|
|
- const element = MainConfig[index];
|
|
|
|
- if(element.id==main_id){
|
|
|
|
- return element
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
- return null
|
|
|
|
-}
|
|
|
|
|
|
+// function getPlatformInfoByI(PlatformConfig,tg_platform_id){
|
|
|
|
+// for (let index = 0; index < PlatformConfig.length; index++) {
|
|
|
|
+// const element = PlatformConfig[index];
|
|
|
|
+// if(element.tg_platform_id==tg_platform_id){
|
|
|
|
+// return element
|
|
|
|
+// }
|
|
|
|
+// }
|
|
|
|
+// return null
|
|
|
|
+// }
|
|
|
|
+
|
|
|
|
+// function getMainInfoById(MainConfig,main_id){
|
|
|
|
+// // console.log("MainConfig:",MainConfig)
|
|
|
|
+// for (let index = 0; index < MainConfig.length; index++) {
|
|
|
|
+// const element = MainConfig[index];
|
|
|
|
+// if(element.id==main_id){
|
|
|
|
+// return element
|
|
|
|
+// }
|
|
|
|
+// }
|
|
|
|
+// return null
|
|
|
|
+// }
|
|
let isInit = false
|
|
let isInit = false
|
|
redis_help.connect( async (results)=>{
|
|
redis_help.connect( async (results)=>{
|
|
if(results){
|
|
if(results){
|
|
@@ -35,9 +35,16 @@ redis_help.connect( async (results)=>{
|
|
}
|
|
}
|
|
isInit = true
|
|
isInit = true
|
|
// main()
|
|
// main()
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ }
|
|
|
|
+})
|
|
|
|
+
|
|
// let response = helper.resolveDomain("clipvideoup.s6kuwan.com")
|
|
// let response = helper.resolveDomain("clipvideoup.s6kuwan.com")
|
|
// console.log("response:",response)
|
|
// console.log("response:",response)
|
|
|
|
|
|
|
|
+
|
|
|
|
+
|
|
// let MainConfig = await redis_help.getKeyValue("MainConfig")
|
|
// let MainConfig = await redis_help.getKeyValue("MainConfig")
|
|
// MainConfig = JSON.parse(MainConfig)
|
|
// MainConfig = JSON.parse(MainConfig)
|
|
// let PlatformConfig = await redis_help.getKeyValue("PlatformConfig")
|
|
// let PlatformConfig = await redis_help.getKeyValue("PlatformConfig")
|
|
@@ -84,8 +91,7 @@ redis_help.connect( async (results)=>{
|
|
// console.log("promotion_name:",promotion_name)
|
|
// console.log("promotion_name:",promotion_name)
|
|
// let n_data = await require("./src/api/qm/get_qm_promotion").getPromotionList(promotion_name)
|
|
// let n_data = await require("./src/api/qm/get_qm_promotion").getPromotionList(promotion_name)
|
|
// console.log("get_qm_promotion:",n_data)
|
|
// console.log("get_qm_promotion:",n_data)
|
|
- }
|
|
|
|
-})
|
|
|
|
|
|
+
|
|
|
|
|
|
// let get_hy_group_mapping = require('./src/api/hy/get_hy_group_mapping');
|
|
// let get_hy_group_mapping = require('./src/api/hy/get_hy_group_mapping');
|
|
// get_hy_group_mapping.get_group_mapping((data)=>{
|
|
// get_hy_group_mapping.get_group_mapping((data)=>{
|