@@ -113,7 +113,8 @@ async function category(_inReq, _outResp) {
113
113
ext = base64Encode ( JSON . stringify ( filters ) ) ;
114
114
}
115
115
const query = {
116
- ac : 'list' ,
116
+ // ac: 'list',
117
+ ac : 'detail' , // 适配不夜t4
117
118
t : tid ,
118
119
pg : pg ,
119
120
ext : ext ,
@@ -149,7 +150,13 @@ async function detail(_inReq, _outResp) {
149
150
console . log ( 'detail push _ids:' , _ids ) ;
150
151
console . log ( 'detail push _url:' , _url ) ;
151
152
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
+ }
153
160
if ( _result && Array . isArray ( _result . list ) ) {
154
161
let _vod_play_url = _result . list [ 0 ] . vod_play_url ;
155
162
_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) {
187
194
console . log ( 'tab push _ids:' , _ids ) ;
188
195
console . log ( 'tab push _url:' , _url ) ;
189
196
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
+ }
191
204
// const _query = {ac: 'detail', ids: _ids};
192
205
// _url = mergeQuery(_url, _query);
193
206
// const _result = await request(_url);
0 commit comments