Skip to content

Commit 3b08008

Browse files
committed
fix: request timeout
1 parent 0262a91 commit 3b08008

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

app/service/snh48g/tickets/index.ts

+9-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,15 @@ export default class Snh48gTicketsService extends Service {
1818
accept: '*/*',
1919
},
2020
dataType: 'text',
21-
});
21+
22+
/**
23+
* 为什么使用:https://github.com/eggjs/egg/issues/4583
24+
*
25+
* 另,urllib.RequestOptions 类型未定义 false
26+
*/
27+
agent: false,
28+
httpsAgent: false,
29+
} as any);
2230

2331
if (result.status === 200) {
2432
/** 先解码再转换 URL 链接,形如 https:\\/\\/m.48.cn\\/tickets\\/item\\/3877 */

0 commit comments

Comments
 (0)