|
@@ -29,7 +29,7 @@ async function processTask(){
|
|
|
let hy_book_result = await video_product_controllers.getProductData({ book_id: result.data.book_id });
|
|
|
if(hy_book_result.success){
|
|
|
result.data.words = hy_book_result.data.words
|
|
|
- result.data.genre = hy_book_result.data.genre
|
|
|
+ result.data.genre = 3
|
|
|
result.data.book_id = hy_book_result.data.product_id
|
|
|
result.data.book_name = hy_book_result.data.product_name
|
|
|
}else{
|
|
@@ -40,7 +40,7 @@ async function processTask(){
|
|
|
let fq_book_result = await get_fq_book_tab_controllers.getData({ book_id: result.data.book_id });
|
|
|
if(fq_book_result.success){//如果番茄书库里有这本书
|
|
|
|
|
|
- result.data.genre = fq_book_result.data.genre
|
|
|
+ result.data.genre = 3
|
|
|
result.data.book_id = fq_book_result.data.book_id
|
|
|
result.data.book_name = fq_book_result.data.info.book_name
|
|
|
result.data.words = fq_book_result.data.info.word_number
|
|
@@ -84,7 +84,6 @@ async function processCreateTask(){
|
|
|
let tg_platform_id = result.data.tg_platform_id
|
|
|
if(tg_platform_id==1){
|
|
|
let hy_book_data = await require('./collect_hy_book').runTask(result.data)
|
|
|
- console.log("hy_book_data.genre:",hy_book_data)
|
|
|
if(CMD.isGenre(FilterConfig,hy_book_data.genre)){
|
|
|
await CMD.insert_product(hy_book_data)
|
|
|
}
|