@@ -113,7 +113,8 @@ async function category(_inReq, _outResp) {
113113 ext = base64Encode ( JSON . stringify ( filters ) ) ;
114114 }
115115 const query = {
116- ac : 'list' ,
116+ // ac: 'list',
117+ ac : 'detail' , // 适配不夜t4
117118 t : tid ,
118119 pg : pg ,
119120 ext : ext ,
@@ -149,7 +150,13 @@ async function detail(_inReq, _outResp) {
149150 console . log ( 'detail push _ids:' , _ids ) ;
150151 console . log ( 'detail push _url:' , _url ) ;
151152 let _data = { ac : 'detail' , ids : _ids } ;
152- let _result = await post ( _url , _data ) ;
153+ let _result ;
154+ if ( / p l a t f o r m = y s c / . test ( _url ) ) { // 不夜get
155+ url = mergeQuery ( url , _data ) ;
156+ _result = await request ( url ) ;
157+ } else {
158+ _result = await post ( _url , _data ) ;
159+ }
153160 if ( _result && Array . isArray ( _result . list ) ) {
154161 let _vod_play_url = _result . list [ 0 ] . vod_play_url ;
155162 _result . list [ 0 ] . vod_play_url = _vod_play_url . split ( '#' ) . map ( i => i . replace ( '$' , '$push://' ) ) . join ( '#' ) ;
@@ -187,7 +194,13 @@ async function detail(_inReq, _outResp) {
187194 console . log ( 'tab push _ids:' , _ids ) ;
188195 console . log ( 'tab push _url:' , _url ) ;
189196 let _data = { ac : 'detail' , ids : _ids } ;
190- let _result = await post ( _url , _data ) ;
197+ let _result ;
198+ if ( / p l a t f o r m = y s c / . test ( _url ) ) { // 不夜get
199+ url = mergeQuery ( url , _data ) ;
200+ _result = await request ( url ) ;
201+ } else {
202+ _result = await post ( _url , _data ) ;
203+ }
191204 // const _query = {ac: 'detail', ids: _ids};
192205 // _url = mergeQuery(_url, _query);
193206 // const _result = await request(_url);
0 commit comments