Skip to content

Commit 40916db

Browse files
committed
代码优化
1 parent 91bfcc9 commit 40916db

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ func main() {
2020
"5aa21c7ae54af10017dc93f8", // 一个想法不一定对
2121
}
2222

23-
var topicdIndex = rand.Intn(len(topics))
23+
topicdIndex := rand.Intn(len(topics))
2424

2525
url := "https://app.jike.ruguoapp.com/1.0/squarePosts/list"
2626
jsonStr := []byte(`{"topicId": "` + topics[topicdIndex] + `", "limit": 1}`)

0 commit comments

Comments
 (0)