curl -X POST \
-H "Content-Type: application/json" \
-H "X-LC-Id: xxxxxxxxxxxxxxxxxxxxxxxxxxxx" \
-H "X-LC-Key: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" \
-d '{"username":"hjiang","password":"f32@ds*@&dsa"}' \
https://rclv9fgn.api.lncld.net/1.1/login

但是查询的结果却是空

{
    "results": []
}

您确定粘贴了正确的命令或返回结果吗?

/login 是登录操作,不是查询,应该不会返回 { "results": [] }
如果成功登录,会返回用户信息;
否则会返回报错信息,比如用户不存在会返回 400 Bad Request

{
  "code": 211,
  "error": "Could not find user."
}

那是执行查询操作后返回的结果,真的不好意思,是我没有描述清楚。
这是login返回的

{
    "sessionToken": "762cqqvx5obq2ac4ahkw6ps14",
    "updatedAt": "2019-05-28T11:40:42.888Z",
    "objectId": "xxxxxxxxxxxxxxxxxxxxx",
    "username": "xxxxxxxxxxxxxxxxx",
    "createdAt": "2019-05-28T11:40:42.888Z",
    "emailVerified": false,
    "mobilePhoneVerified": false
}

然后我又执行查询在线状态操作

curl -X POST \
  -H "X-LC-Id: xxxxxxxxxxxxxxxxxxxxxxxxxxz" \
  -H "X-LC-Key: jxxxxxxxxxxxxxxxxx,master" \
  -H "Content-Type: application/json" \
  -d '{"peers": ["xxxxxxxxx"]}' \
  https://rclv9fgn.api.lncld.net/1.1/rtm/online

返回结果如下

{
    "results": []
}

在控制台查询该用户也是离线状态

RTM 的用户和 LeanCloud 应用的用户 (_User)是解耦的。RTM 的用户登录指客户端登录,和应用层面的用户登录(/login)是不一样的。 参加文档5

顺便提下,/1.1/rtm/online 是旧版的接口,一般推荐新版的 /1.2/rtm/clients/check-online。详见 即时通讯 REST API 使用指南 v27