File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -472,10 +472,13 @@ export class Bilibilipush extends Base {
472472 }
473473 case 'DYNAMIC_TYPE_DRAW' : {
474474 const imgArray = [ ]
475- for ( const img of dynamicItem . Dynamic_Data . modules . module_dynamic . major && dynamicItem . Dynamic_Data . modules . module_dynamic ?. major ?. draw ?. items ) {
476- imgArray . push ( segment . image ( img . src ) )
475+ const drawItems = dynamicItem . Dynamic_Data . modules . module_dynamic ?. major ?. draw ?. items
476+ if ( drawItems && Array . isArray ( drawItems ) ) {
477+ for ( const img of drawItems ) {
478+ imgArray . push ( segment . image ( img . src ) )
479+ }
477480 }
478- const forwardMsg = Bot [ botId ] . makeForwardMsg ( imgArray )
481+ const forwardMsg = Bot . makeForwardMsg ( imgArray )
479482 await Bot [ botId ] . pickFriend ( botId ) . sendMsg ( forwardMsg )
480483 break
481484 }
Original file line number Diff line number Diff line change @@ -66,11 +66,6 @@ export class DouYinpush extends Base {
6666 e . reply ( '不支持QQBot,请使用其他适配器' )
6767 return
6868 }
69- this . headers = {
70- ...this . headers ,
71- Referer : 'https://www.douyin.com' ,
72- Cookie : Config . cookies . douyin
73- }
7469 this . force = force
7570 }
7671
@@ -269,7 +264,7 @@ export class DouYinpush extends Base {
269264 image_url = item . url_list [ 2 ] || item . url_list [ 1 ] // 图片地址
270265 imageres . push ( segment . image ( image_url ) )
271266 }
272- const forwardMsg = Bot [ botId ] . makeForwardMsg ( imageres )
267+ const forwardMsg = Bot . makeForwardMsg ( imageres )
273268 await Bot [ botId ] . pickFriend ( botId ) . sendMsg ( forwardMsg )
274269 }
275270 }
You can’t perform that action at this time.
0 commit comments