fxxk-bot / bfv-bot

战地五QQ群机器人 | 支持战绩查询、屏蔽查询、周任务查询、加群自动改名片、黑名单进服提醒、卡排队提醒、自动宵禁、自定义命令名称...
5 stars 0 forks source link

查询屏蔽功能, banlog 问题 #3

Open 15h6 opened 1 month ago

15h6 commented 1 month ago

不能正常查询屏蔽记录

查询功能, banlog 失败

log文件夹内的日志 375260432-23c37937-d827-4e94-803f-34d098bba50a

2024/10/10 - 15:00:39.102 INFO initialize/gin.go:32 路由注册完成 2024/10/10 - 15:00:39.120 INFO initialize/cron.go:43 定时任务初始化完成 2024/10/10 - 15:00:39.120 INFO initialize/sensitive.go:13 未加载到敏感词 2024/10/10 - 15:00:39.278 INFO bfv-bot/main.go:56 服务成功启动在 Port: 19997 2024/10/10 - 15:00:57.304 DEBUG initialize/gin.go:44 msg: {"text":"banlog=hunzhuning"}}],"message_format":"array","post_type":"message","group_id":483828}

2024/10/10 - 15:01:00.276 DEBUG utils/http.go:115 Get {"url": "https://api.bfvrobyer", "stringResult": "{\"status\":1,\"message\":\"successful\",\"data\":{\"userId\":114,\"name\":\"HunZng\",\"personaId\":109314}}"} 2024/10/10 - 15:01:00.937 DEBUG utils/http.go:115 Get {"url": "https://api.bfvrobedLPid", "stringResult": "{\"success\":1,\"code\":\"getBannedLogsByPid.success\",\"data\": 2024/10/10 - 15:01:00.942 ERROR initialize/gin.go:133 goroutine 27 [running]: runtime/debug.Stack() 2024/10/10 - 15:01:00.943 INFO initialize/gin.go:60 [GIN] | 500 | 3637ms | 127.0.0.1 | POST  "/api/event/post"

fxxk-bot commented 1 month ago

https://github.com/fxxk-bot/bfv-bot/releases/tag/1.0.1

下载最新程序试试, 手头没有相关环境无法复现

15h6 commented 1 month ago

banlog查询被踢记录 显示序列化异常 2024/10/13 - 23:20:31.919 DEBUG utils/http.go:115 Get {"url": "https://api.bfvrobot.net/api/v2/bfv/checkPlayer", "stringResult": "{\"status\":1,\"message\":\"successful\",\"data\":{\"personaId\":116,\"name\":\"\",\"userId\":101416}}"} 2024/10/13 - 23:20:32.320 DEBUG utils/http.go:115 Get {"url": "https://api.bfvrobot.net/api/v2/bfv/getBannedLogsByPid", "stringResult": "<!DOCTYPE html>\n<html lang=\"en\">\n\n<meta charset=\"utf-8\">\nError\n\n\n

Cannot GET /api/v2/bfv/getBannedLogsByPid
\n\n\n"} 2024/10/13 - 23:20:32.322 ERROR utils/third.go:113 StringToStruct {"error": "invalid character '<' looking for beginning of value"} 2024/10/13 - 23:20:32.328 ERROR api/event.go:584 utils.GetBanLog {"name": "F", "error": "序列化异常"}

fxxk-bot commented 1 month ago

社区接口问题, 先等等

fxxk-bot commented 1 month ago

最新版本可以了

15h6 commented 1 month ago

好的,佬

15h6 commented 1 month ago

绑定后 直接输入pb无法查询 2024/10/14 - 22:17:15.707 DEBUG initialize/gin.go:44 msg: {"self_id":3996023151,"user_id":13,"time":1728915435,"message_id":170386,"real_id":17086,"message_seq":1186,"message_type":"group","sender":{"user_id":165,"nickname":"","card":"","role":"owner","title":""},"raw_message":"pb","font":14,"sub_type":"normal","message":[{"type":"text","data":{"text":"pb"}}],"message_format":"array","post_type":"message","group_id":984599806

fxxk-bot commented 1 month ago

下个版本一起修复

fxxk-bot commented 1 month ago

新版本可以了