Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

发送消息乱码? #25

Closed
zhzhongshi opened this issue Aug 6, 2020 · 0 comments
Closed

发送消息乱码? #25

zhzhongshi opened this issue Aug 6, 2020 · 0 comments
Labels
bug Something isn't working

Comments

@zhzhongshi
Copy link

我调用HTTP api

POST /send_group_msg HTTP/1.1
Content-Length: 54
Content-Type: application/json
Host: 127.0.0.1:5700
{
  "group_id":1048307612,
  "message":"我试下at"
}

HTTP/1.1 200 OK
Content-Length: 89
Content-Type: application/json; charset=UTF-8
Connection: keep-alive
{"status":"ok","retcode":0,"data":{"type":"MessageData","message_id":110144},"echo":null}

log:

[21:06:28.9287] I 启动Mirai...
Using proxy: null
You are running Mirai-Console-Wrapper under D:\CQP\Mirai
All additional libraries are located at D:\CQP\Mirai\libraries
Starting Mirai Console Pure, reset by clear /content/
Starting version check...
Fetching Newest Core Version ..
Stay on current version.
Fetching Newest Console Version of Pure
Stay on current version.
Version check complete, starting Mirai
shadow-Protocol:D:\CQP\Mirai\content\mirai-core-qqandroid-1.1.3.jar
Console        :D:\CQP\Mirai\content\mirai-console-0.5.2.jar
Root           :D:\CQP\Mirai/
 21:06:29 [INFO] [Mirai 0.5.2 Pkmon] Mirai-console now running under D:\CQP\Mirai
 21:06:29 [INFO] [Mirai 0.5.2 Pkmon] Get news in github: https://github.com/mamoe/mirai
 21:06:29 [INFO] [Mirai 0.5.2 Pkmon] Mirai为开源项目,请自觉遵守开源项目协议
 21:06:29 [INFO] [Mirai 0.5.2 Pkmon] Powered by Mamoe Technologies and contributors
 21:06:29 [INFO] [Plugin Manager] 开始加载D:\CQP\Mirai/plugins/下的插件
 21:06:30 [INFO] [Plugin Manager] loading plugin CQHTTPMirai
 21:06:30 [INFO] [Plugin Manager] successfully loaded plugin CQHTTPMirai version 0.1.9 by yyuueexxii
nngg
 21:06:30 [INFO] [Plugin Manager] Mirai to CoolQ HTTP API Plugin
 21:06:30 [INFO] [CQHTTPMirai] Plugin loaded! 0.1.9
 21:06:30 [INFO] [Plugin Manager] 加载了1个插件
 21:06:30 [INFO] [Mirai 0.5.2 Pkmon] Mirai-console 启动完成
 21:06:30 [INFO] [Mirai 0.5.2 Pkmon] "login qqnumber qqpassword " to login a bot
 21:06:30 [INFO] [Mirai 0.5.2 Pkmon] "login qq号 qq密码 " 来登录一个BOT
 21:06:30 [INFO] [Bot Login] login...
 21:06:32 [INFO] [BOT 3173857429] Logging in...
 21:06:32 [INFO] [NETWORK] Connected to server 42.81.172.81:80
 21:06:33 [INFO] [NETWORK] Send: wtlogin.login
 21:06:33 [INFO] [NETWORK] Recv: LoginPacketResponse.Success
 21:06:33 [INFO] [NETWORK] Login successful
 21:06:33 [INFO] [NETWORK] Send: StatSvc.register
 21:06:33 [INFO] [NETWORK] Recv: Response(StatSvc.register)
 21:06:33 [INFO] [NETWORK] 开始加载好友信息
 21:06:33 [INFO] [NETWORK] 开始加载群组列表与群成员列表
 21:06:33 [INFO] [NETWORK] Send: friendlist.getFriendGroupList
 21:06:33 [INFO] [NETWORK] Send: friendlist.GetTroopListReqV2
 21:06:33 [INFO] [NETWORK] Recv: FriendList.GetFriendGroupList.Response
 21:06:33 [INFO] [NETWORK] 正在加载好友列表 8/8
 21:06:33 [INFO] [NETWORK] 好友列表加载完成, 共 8个
 21:06:33 [INFO] [NETWORK] Recv: FriendList.GetFriendGroupList.Response
 21:06:33 [INFO] [NETWORK] Send: OidbSvc.0x88d_7
 21:06:33 [INFO] [NETWORK] Send: OidbSvc.0x88d_7
 21:06:33 [INFO] [NETWORK] Send: OidbSvc.0x88d_7
 21:06:33 [INFO] [NETWORK] Send: OidbSvc.0x88d_7
 21:06:33 [INFO] [NETWORK] Send: OidbSvc.0x88d_7
 21:06:33 [INFO] [NETWORK] Send: OidbSvc.0x88d_7
 21:06:33 [INFO] [NETWORK] Send: OidbSvc.0x88d_7
 21:06:33 [INFO] [NETWORK] Send: OidbSvc.0x88d_7
 21:06:33 [INFO] [NETWORK] Send: OidbSvc.0x88d_7
 21:06:33 [INFO] [NETWORK] Send: OidbSvc.0x88d_7
 21:06:33 [INFO] [NETWORK] Send: OidbSvc.0x88d_7
 21:06:33 [INFO] [NETWORK] Send: OidbSvc.0x88d_7
 21:06:33 [INFO] [NETWORK] Send: OidbSvc.0x88d_7
 21:06:34 [INFO] [NETWORK] Send: friendlist.GetTroopMemberListReq
 21:06:34 [INFO] [NETWORK] Send: friendlist.GetTroopMemberListReq
 21:06:34 [INFO] [NETWORK] Send: friendlist.GetTroopMemberListReq
 21:06:34 [INFO] [NETWORK] Send: friendlist.GetTroopMemberListReq
 21:06:34 [INFO] [NETWORK] Send: friendlist.GetTroopMemberListReq
 21:06:34 [INFO] [NETWORK] Send: friendlist.GetTroopMemberListReq
 21:06:34 [INFO] [NETWORK] Send: friendlist.GetTroopMemberListReq
 21:06:34 [INFO] [NETWORK] Send: friendlist.GetTroopMemberListReq
 21:06:34 [INFO] [NETWORK] Send: friendlist.GetTroopMemberListReq
 21:06:34 [INFO] [NETWORK] Send: friendlist.GetTroopMemberListReq
 21:06:34 [INFO] [NETWORK] Send: friendlist.GetTroopMemberListReq
 21:06:34 [INFO] [NETWORK] Send: friendlist.GetTroopMemberListReq
 21:06:34 [INFO] [NETWORK] Send: friendlist.GetTroopMemberListReq
 21:06:34 [INFO] [NETWORK] Recv: FriendList.GetTroopMemberList.Response
 21:06:34 [INFO] [NETWORK] Recv: FriendList.GetTroopMemberList.Response
 21:06:34 [INFO] [NETWORK] Recv: FriendList.GetTroopMemberList.Response
 21:06:34 [INFO] [NETWORK] Recv: FriendList.GetTroopMemberList.Response
 21:06:34 [INFO] [NETWORK] Recv: FriendList.GetTroopMemberList.Response
 21:06:34 [INFO] [NETWORK] Recv: FriendList.GetTroopMemberList.Response
 21:06:34 [INFO] [NETWORK] Recv: FriendList.GetTroopMemberList.Response
 21:06:34 [INFO] [NETWORK] Recv: FriendList.GetTroopMemberList.Response
 21:06:34 [INFO] [NETWORK] Send: friendlist.GetTroopMemberListReq
 21:06:34 [INFO] [NETWORK] Recv: FriendList.GetTroopMemberList.Response
 21:06:34 [INFO] [NETWORK] Recv: FriendList.GetTroopMemberList.Response
 21:06:34 [INFO] [NETWORK] Recv: FriendList.GetTroopMemberList.Response
 21:06:34 [INFO] [NETWORK] Recv: FriendList.GetTroopMemberList.Response
 21:06:34 [INFO] [NETWORK] Send: friendlist.GetTroopMemberListReq
 21:06:34 [INFO] [NETWORK] Send: friendlist.GetTroopMemberListReq
 21:06:34 [INFO] [NETWORK] Recv: FriendList.GetTroopMemberList.Response
 21:06:34 [INFO] [NETWORK] Recv: FriendList.GetTroopMemberList.Response
 21:06:34 [INFO] [NETWORK] Recv: FriendList.GetTroopMemberList.Response
 21:06:34 [INFO] [NETWORK] Recv: FriendList.GetTroopMemberList.Response
 21:06:34 [INFO] [NETWORK] Send: friendlist.GetTroopMemberListReq
 21:06:35 [INFO] [NETWORK] Recv: FriendList.GetTroopMemberList.Response
 21:06:35 [INFO] [NETWORK] 群组列表与群成员加载完成, 共 13个
 21:06:35 [INFO] [NETWORK] Awaiting ConfigPushSvc.PushReq
 21:06:35 [INFO] [NETWORK] Syncing friend message history...
 21:06:35 [INFO] [NETWORK] Send: MessageSvc.PbGetMsg
 21:06:35 [INFO] [NETWORK] Send: MessageSvc.PbDeleteMsg
 21:06:35 [INFO] [BOT 3173857429] Event: MessageSvcPbGetMsg.Response(syncFlagFromServer=CONTINUE, me
ssages=<Iterable>))
 21:06:35 [INFO] [NETWORK] Send: MessageSvc.PbGetMsg
 21:06:35 [INFO] [NETWORK] Send: MessageSvc.PbDeleteMsg
 21:06:35 [INFO] [BOT 3173857429] Event: MessageSvcPbGetMsg.Response(syncFlagFromServer=CONTINUE, me
ssages=<Iterable>))
 21:06:35 [INFO] [NETWORK] Send: MessageSvc.PbGetMsg
 21:06:35 [INFO] [NETWORK] Send: MessageSvc.PbDeleteMsg
 21:06:35 [INFO] [BOT 3173857429] Event: MessageSvcPbGetMsg.Response(syncFlagFromServer=CONTINUE, me
ssages=<Iterable>))
 21:06:35 [INFO] [NETWORK] Send: MessageSvc.PbGetMsg
 21:06:35 [INFO] [NETWORK] Send: MessageSvc.PbDeleteMsg
 21:06:35 [INFO] [NETWORK] Syncing friend message history: Success
 21:06:35 [INFO] [CQHTTPMirai] Bot: 3173857429 HTTP API服务端是否配置开启: true
SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
 21:06:35 [INFO] [CQHTTPMirai] Bot: 3173857429 正向Websocket服务端是否配置开启: true
 21:06:35 [INFO] [BOT 3173857429] Login successful
 21:06:35 [INFO] [Command] 3173857429 login successes
 21:06:36 [INFO] [NETWORK] Recv: ConfigPushSvc.PushReq.PushReqResponse.Success
 21:06:36 [INFO] [NETWORK] Recv: ConfigPushSvc.PushReq.PushReqResponse.Success
 21:06:36 [INFO] [NETWORK] Send: ConfigPushSvc.PushResp
 21:06:36 [INFO] [NETWORK] Send: ConfigPushSvc.PushResp
 21:06:36 [INFO] [NETWORK] ConfigPushSvc.PushReq: Success
 21:06:43 [INFO] [NETWORK] Send: MessageSvc.PbSendMsg
 21:06:43 [INFO] [NETWORK] Recv: MessageSvcPbSendMsg.Response.SUCCESS
 21:06:44 [INFO] [BOT 3173857429] Group(1048307612) <- ???è?????at

image

@yyuueexxiinngg yyuueexxiinngg added the bug Something isn't working label Aug 9, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants