File tree Expand file tree Collapse file tree 5 files changed +6
-6
lines changed
Expand file tree Collapse file tree 5 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 11{
22 "name" : " surmon.me" ,
3- "version" : " 5.3.0 " ,
3+ "version" : " 5.3.1 " ,
44 "description" : " Surmon.me blog" ,
55 "author" : " Surmon" ,
66 "license" : " MIT" ,
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ import { VALUABLE_LINKS } from '@/configs/app.config'
99
1010export const fetchGitHubStatisticJSON = async < T = any > ( fileName : string ) : Promise < T > => {
1111 const url = `${ VALUABLE_LINKS . GITHUB_STATISTIC_JSON_URL } ${ fileName } `
12- const response = await axios . get < T > ( url , { timeout : 6000 } )
12+ const response = await axios . get < T > ( url , { timeout : 8000 } )
1313 return response . data
1414}
1515
Original file line number Diff line number Diff line change @@ -10,6 +10,6 @@ import { getGaScriptURL } from '@/transforms/gtag'
1010
1111export const getGTagScript = async ( ) => {
1212 const url = getGaScriptURL ( IDENTITIES . GOOGLE_ANALYTICS_MEASUREMENT_ID )
13- const response = await axios . get < string > ( url , { timeout : 6000 } )
13+ const response = await axios . get < string > ( url , { timeout : 8000 } )
1414 return response . data
1515}
Original file line number Diff line number Diff line change @@ -16,6 +16,6 @@ export const getMyGoogleMap = () => {
1616 } )
1717
1818 return axios
19- . get < any > ( VALUABLE_LINKS . GOOGLE_MY_MAP_KML_URL , { timeout : 6000 } )
19+ . get < any > ( VALUABLE_LINKS . GOOGLE_MY_MAP_KML_URL , { timeout : 8000 } )
2020 . then ( ( response ) => xmlParser . parse ( response . data ) . kml . Document )
2121}
Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ const PLAY_LIST_LIMIT = 168
2222export const getSongList = async ( ) : Promise < Array < Song > > => {
2323 // https://github.com/Binaryify/NeteaseCloudMusicApi/blob/a0500ec648f22a1dd20fc7b529126f813aa26935/module/playlist_track_all.js
2424 const playlistURL = `https://music.163.com/api/v6/playlist/detail?id=${ IDENTITIES . MUSIC_163_BGM_ALBUM_ID } `
25- const playlistDetail = await axios . get < any > ( playlistURL , { timeout : 6000 } )
25+ const playlistDetail = await axios . get < any > ( playlistURL , { timeout : 8000 } )
2626 if ( playlistDetail . data . code < 0 ) {
2727 throw new Error ( playlistDetail . data . message )
2828 }
@@ -33,7 +33,7 @@ export const getSongList = async (): Promise<Array<Song>> => {
3333 . map ( ( id ) => `{id:${ id . id } }` )
3434 . join ( ',' )
3535 const songListURL = `https://music.163.com/api/v3/song/detail?c=[${ idsParams } ]`
36- const songListDetail = await axios . get < any > ( songListURL , { timeout : 6000 } )
36+ const songListDetail = await axios . get < any > ( songListURL , { timeout : 8000 } )
3737 if ( ! songListDetail . data . songs ) {
3838 throw new Error ( songListDetail . data )
3939 }
You can’t perform that action at this time.
0 commit comments