|
@@ -33,7 +33,7 @@ public class NotifyController {
|
|
|
*/
|
|
|
@PostMapping(value = "/wxpay")
|
|
|
@ApiOperation("微信支付回调")
|
|
|
- public Response<FilmOrder> wxpayNotify(FilmWxpayDTO filmWxpayDTO,HttpServletRequest request) throws GeneralSecurityException, IOException {
|
|
|
+ public Response<FilmOrder> wxpayNotify(@RequestBody FilmWxpayDTO filmWxpayDTO,HttpServletRequest request) throws GeneralSecurityException, IOException {
|
|
|
AesUtil aesUtil = new AesUtil(wxpayConfig.getV3key().getBytes());
|
|
|
FilmWxpayDTO.WxpaySource wxpaySource = filmWxpayDTO.getResource();
|
|
|
String resourceString = aesUtil.decryptToString(wxpaySource.getAssociated_data().getBytes(), wxpaySource.getNonce().getBytes(), wxpaySource.getCiphertext());
|