|
@@ -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);
|