会长

Results 8 comments of 会长

![image](https://user-images.githubusercontent.com/26496638/157621359-49c472e2-3557-4d24-a169-c9890e24f2bd.png)

Solved: file, _ := os.Open("./test.txt") part, err := email.NewPartAttachment(file, mime.QEncoding.Encode("UTF-8", "测试")) file.Close()

eyJhbGciOiJIUzI1NiIsInR5cGUiOiJKV1QifQ解析出来的结果:string(28) "{"alg":"HS256","type":"JWT"}" 标准的jwt库:type应为typ ![image](https://user-images.githubusercontent.com/26496638/99408465-3a194800-292b-11eb-9a37-f9b31cbdd97c.png) https://baijiahao.baidu.com/s?id=1608021814182894637&wfr=spider&for=pc Firebase\JWT\JWT 这个库能解析出来的原因是:它生成signature时,直接用你传递过来的header.payload 作为验证参数(不管你的header.payload有没有问题,这样是不标准的。 这是Firebase\JWT\JWT 的源码 ![image](https://user-images.githubusercontent.com/26496638/99408779-8ebcc300-292b-11eb-85fc-51afb1447d20.png) easyswoole 的源码在生成signature时会将你传递过来的header解析出来再按照标准的参数拼装再进行加密 ![image](https://user-images.githubusercontent.com/26496638/99408961-cb88ba00-292b-11eb-9ea8-d638915f94df.png)

@shardyr Hello, have you resolved it. I used the modvendor method on the Windows system and still couldn't solve my problem??????????????????????????????????

I used your code, but it didn't reproduce. The suspicion is still related to Redis....