修改评论 上传新附件1583814196947-417.png
Summary
-
Page properties (1 modified, 0 added, 0 removed)
-
Attachments (0 modified, 1 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -1,6 +1,9 @@ 1 +{{box cssClass="box floatinginfobox" title="**Summary**"}} 2 +{{toc/}} 3 +{{/box}} 4 + 1 1 分析主要分两类:数据库、应用日志。 2 2 3 - 4 4 = 案例1:卡鉴权 = 5 5 6 6 思路: ... ... @@ -47,9 +47,12 @@ 47 47 48 48 49 49 50 -= 案例4:日志分析 = 53 += 案例4:日志分析之查心跳 = 51 51 52 52 关于日志逻辑,主要看几个接口数据,比如电量、心跳。浏览器中ctrl+f查些关键字。 56 + 57 +查看日志,还需要 学会数据格式json [[https:~~/~~/www.w3school.com.cn/json/index.asp>>url:https://www.w3school.com.cn/json/index.asp]] 58 + 53 53 **接口一:更新充电状态信息** 54 54 55 55 **接口描述:** ... ... @@ -69,3 +69,17 @@ 69 69 **接口地址:** 70 70 71 71 |http:~/~/IP:PORT/boss/charge/addChargeRecord 78 + 79 += 案例5:日志分析之查鉴权请求 = 80 + 81 +**~~密码充电**,平台日志会收到鉴权请求,日志格式排查可 以关键字(其中桩id按实际替换):“deviceNumber: 35010400080000200014 >”。 82 + 83 +实例如下:(对应 案例 fzfs_case#4_20191121) 84 + 85 +以方硕福州齐安充电站 桩id=35010400080000200014 ,如平台收到 密码充电 会有如下日志。2019-11-21 07:24:47,962 INFO [com.himorning.base.interceptors.BaseInterceptor] - <POST : subUnits: encryptionAlg: md5 authType: 0 chargeUnitLabel: 3 password: 573B8926F015AA477CB6604901B92AEA deviceNumber: 35010400080000200014 > 86 + 87 +反之:紫阳站 桩id=35011100080000200001 ,在今日 未查到 类似日志。 说明平台未收到桩端请求上送。 88 +\\~~刷卡充电 日志示例 89 +2019-11-26 10:40:50.368 | http-nio-8010-exec-1 | INFO | c.s.b.f.CustomAuthenticationFilter.doFilter(68) : POST : authType: 2 chargeUnitLabel: 2 deviceNumber: 44200000010000200002 subUnits: userCardNumber: 0001000000000013 90 +2019-11-26 10:40:50.368 | http-nio-8010-exec-1 | INFO | c.s.boss.controller.ChargeController.auth(133) : =========receiveTspAction=====auth() password= null | deviceNumber=44200000010000200002 91 +
- 1583814196947-417.png
-
- Author
-
... ... @@ -1,0 +1,1 @@ 1 +XWiki.ShiChuck - Size
-
... ... @@ -1,0 +1,1 @@ 1 +120.8 KB - Content