fengshi19888

Results 3 issues of fengshi19888

##### 问题描述 调用代码`WxAppApi.GetWxaCodeUnlimitAsync` ,不能正常提示服务器错误。 ##### 重现问题步骤(如果可以) 使用如下代码进行,小程序二维码生成调用 ``` using (var ms = new MemoryStream()) { string fileName = Guid.NewGuid().ToString() + ".jpg"; string path = string.Format("{0}/{1}/{2}", _fileSaveOptions.FlatFromImageSavePath, "QrCode", fileName); string savePath...

enhancement
task

由于文字显示比较多 ![image](https://user-images.githubusercontent.com/6128312/186308310-80100f56-cbee-4ddc-99d8-4f779c1a5356.png)

经检查发现,每次上传时获取的UserId不正确,为随机新增的UUID,没有从token中获取到对应的信息。 经调试发现在 `JwtAuthenticationConfigurationExtension` 中转换JwtSecurityToken 时失败,建议调整使用 JsonWebToken 获取相关信息。 ``` jwtBearerOptions.Events = new JwtBearerEvents { OnTokenValidated = context => { if (context.SecurityToken is JwtSecurityToken accessToken) { var userId = accessToken.Claims.FirstOrDefault(a => a.Type...