|
@@ -117,9 +117,10 @@ async function processCreateTask(){
|
|
result.data.genre = 999
|
|
result.data.genre = 999
|
|
}else{
|
|
}else{
|
|
qm_book_data.tg_platform_id = result.data.tg_platform_id
|
|
qm_book_data.tg_platform_id = result.data.tg_platform_id
|
|
- if(CMD.isGenre(FilterConfig,qm_book_data.genre)){
|
|
|
|
- await CMD.insert_product(qm_book_data)
|
|
|
|
- }
|
|
|
|
|
|
+ // if(CMD.isGenre(FilterConfig,qm_book_data.genre)){
|
|
|
|
+ // await CMD.insert_product(qm_book_data)
|
|
|
|
+ // }
|
|
|
|
+ await CMD.insert_product(qm_book_data)
|
|
result.data.words = qm_book_data.words
|
|
result.data.words = qm_book_data.words
|
|
result.data.genre = qm_book_data.genre
|
|
result.data.genre = qm_book_data.genre
|
|
result.data.book_id = qm_book_data.book_id
|
|
result.data.book_id = qm_book_data.book_id
|
|
@@ -219,8 +220,10 @@ CMD.getSharedPlatform = function(PlatformShared,platform_shared_id){
|
|
}
|
|
}
|
|
|
|
|
|
CMD.update_filter_data = async function(FilterConfig,data) {
|
|
CMD.update_filter_data = async function(FilterConfig,data) {
|
|
- let isGenre = CMD.isGenre(FilterConfig,data.genre)
|
|
|
|
|
|
+ // let isGenre = CMD.isGenre(FilterConfig,data.genre)
|
|
|
|
+ let isGenre = true
|
|
if(isGenre){
|
|
if(isGenre){
|
|
|
|
+ console.log("data:",data)
|
|
await filter_data_controllers.updateFilterData({id:data.id},{status:1,book_id:data.book_id,book_name:data.book_name,genre:data.genre,words:data.words})
|
|
await filter_data_controllers.updateFilterData({id:data.id},{status:1,book_id:data.book_id,book_name:data.book_name,genre:data.genre,words:data.words})
|
|
//创建一个小程序
|
|
//创建一个小程序
|
|
|
|
|
|
@@ -275,7 +278,9 @@ CMD.update_filter_data = async function(FilterConfig,data) {
|
|
if(main_info.tg_link_config==undefined||main_info.tg_link_config==null){
|
|
if(main_info.tg_link_config==undefined||main_info.tg_link_config==null){
|
|
console.error("主体配置推广链接错误:",main_info)
|
|
console.error("主体配置推广链接错误:",main_info)
|
|
}else{
|
|
}else{
|
|
- if(!CMD.isBlackBook(black_books,data.book_id)){
|
|
|
|
|
|
+ let mian_genre = main_info.genre
|
|
|
|
+ let book_genre = data.genre
|
|
|
|
+ if(!CMD.isBlackBook(black_books,data.book_id)&&mian_genre==book_genre){
|
|
//符合标准进行创建表
|
|
//符合标准进行创建表
|
|
const result = await video_applet_product_controllers.getAppletProductData({book_id:data.book_id,main_id:data.main_id})
|
|
const result = await video_applet_product_controllers.getAppletProductData({book_id:data.book_id,main_id:data.main_id})
|
|
if(!result.success){
|
|
if(!result.success){
|