调试过程
有token
header:
map[Accept:[text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,/;q=0.8,application/signed-exchange;v=b3;q=0.9]
Accept-Encoding:[gzip, deflate, br] Accept-Language:[zh-CN,zh;q=0.9] ** Authorization:[eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJVc2VySWQiOjQ2LCJleHAiOjE2MDIyNTM
2NDksImlhdCI6MTYwMjI1MDA0OSwiaXNzIjoic2p5Iiwic3ViIjoidXNlcl90b2tlbiJ9.5UA1BcxUW8lNF5N3RW-zZXJkUc34T1Ale6FCpanQ1LM] ** Cache-Control:[max-age=0] Connection:[keep
-alive] Content-Length:[21] Content-Type:[application/x-www-form-urlencoded] Originhttp://127.0.0.1:8080] Referer
http://127.0.0.1:8080/login]
token为空
map[Accept:[text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,/;q=0.8,application/signed-exchange;v=b3;q=0.9]
Accept-Encoding:[gzip, deflate, br] Accept-Language:[zh-CN,zh;q=0.9] Cache-Control:[max-age=0] Connection:[keep-alive] Refererhttp://127.0.0.1:8080/login]
路由
求解