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 2
2
3
3
import axios from 'axios'
4
4
5
- const getLeetcode = async ( leetcode_id ) => {
5
+ const getLeetCode = async ( leetcode_id ) => {
6
6
const response = await axios . get (
7
7
`http://8.137.12.168:3000/userProfile/${ leetcode_id } `
8
8
)
9
9
return response . data
10
10
}
11
11
12
- export default getLeetcode
12
+ export default getLeetCode
Original file line number Diff line number Diff line change 1
1
import getActivityUser from './getActivityUser.js'
2
- import getLeetcode from './getLeetcode .js'
2
+ import getLeetCode from './getLeetCode .js'
3
3
import {
4
4
setLeetCodeHistory ,
5
5
getLeetCodeHistoryCount ,
@@ -10,7 +10,7 @@ import sendMessage from './sendMessage.js'
10
10
const userList = await getActivityUser ( )
11
11
for ( const user of userList ) {
12
12
console . log ( `开始获取Leetcode数据:${ JSON . stringify ( user ) } ` )
13
- const leetcode_data = await getLeetcode ( user . leetcode_id )
13
+ const leetcode_data = await getLeetCode ( user . leetcode_id )
14
14
if ( Object . keys ( leetcode_data ) . length === 0 ) {
15
15
console . log ( `获取Leetcode数据失败:${ user . name } ,${ user . leetcode_id } ` )
16
16
continue
You can’t perform that action at this time.
0 commit comments