zoujiajian 2 anni fa
parent
commit
ed4081344f

+ 2 - 1
netflix-web/src/main/java/com/cyksj/web/controller/user/UserCertController.java

@@ -70,13 +70,14 @@ public class UserCertController {
 	/**
 	 * 用户微信H5认证结果查询
 	 */
-	@PostMapping("/auth/result/{mappingId}")
+	@GetMapping("/auth/result/{mappingId}")
 	public void wxH5IndentCertAuthResult(@PathVariable String mappingId, HttpServletResponse response) throws Exception {
 		String redirectParams = redisService.getStr(mappingId);
 		if (StrUtil.isNotBlank(redirectParams)) {
 			UserWxIndentDto userWxIndentDto = Jsons.parseObject(redirectParams, UserWxIndentDto.class);
 			userIdentCertService.wxH5IndentCertResult(userWxIndentDto);
 			String url = userWxIndentDto.getRedirectUrl();
+			redisService.del(mappingId);
 			response.sendRedirect(url);
 		}
 	}