File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 22
33import axios from 'axios'
44
5- const getLeetcode = async ( leetcode_id ) => {
5+ const getLeetCode = async ( leetcode_id ) => {
66 const response = await axios . get (
77 `http://8.137.12.168:3000/userProfile/${ leetcode_id } `
88 )
99 return response . data
1010}
1111
12- export default getLeetcode
12+ export default getLeetCode
Original file line number Diff line number Diff line change 11import getActivityUser from './getActivityUser.js'
2- import getLeetcode from './getLeetcode .js'
2+ import getLeetCode from './getLeetCode .js'
33import {
44 setLeetCodeHistory ,
55 getLeetCodeHistoryCount ,
@@ -10,7 +10,7 @@ import sendMessage from './sendMessage.js'
1010const userList = await getActivityUser ( )
1111for ( const user of userList ) {
1212 console . log ( `开始获取Leetcode数据:${ JSON . stringify ( user ) } ` )
13- const leetcode_data = await getLeetcode ( user . leetcode_id )
13+ const leetcode_data = await getLeetCode ( user . leetcode_id )
1414 if ( Object . keys ( leetcode_data ) . length === 0 ) {
1515 console . log ( `获取Leetcode数据失败:${ user . name } ,${ user . leetcode_id } ` )
1616 continue
You can’t perform that action at this time.
0 commit comments