feat: 只抓取国区数据
This commit is contained in:
@@ -49,6 +49,9 @@ func (sm *scoresManager) receiveData() {
|
||||
for {
|
||||
var cmd Command
|
||||
err := sm.conn.ReadJSON(&cmd)
|
||||
if cmd.CommandData.Score.LeaderboardPlayerInfo.Country != "CN" {
|
||||
continue
|
||||
}
|
||||
if err != nil {
|
||||
log.Printf("读取数据失败:", err)
|
||||
continue
|
||||
|
||||
Reference in New Issue
Block a user