Browse Source

VIP BUG处理2

小么熊🐻 2 years ago
parent
commit
76e55c48ff

+ 4 - 4
jsjp-admin/src/main/java/com/miaxis/app/controller/wx/WxNotifyController.java

@@ -45,7 +45,7 @@ import java.util.Date;
 
 @RestController
 @RequiredArgsConstructor
-@RequestMapping(Constants.OPEN_PREFIX + "")
+@RequestMapping(Constants.OPEN_PREFIX + "/wx/notify")
 @Api(tags = {"【APP-微信回调】"})
 @Slf4j
 public class WxNotifyController {
@@ -82,9 +82,9 @@ public class WxNotifyController {
     @ApiOperation("微信支付回调")
     public WxNotifyReturnDTO wxpayNotify(@RequestBody WxpayNotifyDTO wxpayNotifyDTO, HttpServletRequest request) throws GeneralSecurityException, IOException {
         String bodyString = getBodyString(request);
-//        if (!validate(request, bodyString)) {
-//            throw new CustomException("签名失败");
-//        }
+        if (!validate(request, bodyString)) {
+            throw new CustomException("签名失败");
+        }
         String resourceString = getSourString(wxpayNotifyDTO);
         log.info(resourceString);
         JSONObject jsonObject = JSONObject.parseObject(resourceString);