chengf
2025-09-02 9faac602a31237bfc67b0b0748af1b31f5302482
service-api/src/main/java/com/java110/api/controller/app/payment/wechat/WechatNotifyPaymentController.java
@@ -42,11 +42,16 @@
     * @throws Exception
     */
    @RequestMapping(path = "/nativeWechat/{appId}/{paymentPoolId}", method = RequestMethod.POST)
    public ResponseEntity<String> nativeNotify(@RequestBody String postInfo, @PathVariable String appId,@PathVariable String paymentPoolId, HttpServletRequest request) {
    public String nativeNotify(@RequestBody String postInfo, @PathVariable String appId,@PathVariable String paymentPoolId, HttpServletRequest request) {
        logger.debug("微信支付回调报文" + postInfo);
        return notifyPaymentV1InnerServiceSMOImpl.nativeNotifyPayment(new NotifyPaymentOrderDto(appId,postInfo,"",paymentPoolId));
        if (paymentPoolId == null) {
            paymentPoolId = "102025072862190227";
        }
        ResponseEntity<String> stringResponseEntity = notifyPaymentV1InnerServiceSMOImpl.nativeNotifyPayment(new NotifyPaymentOrderDto(appId, postInfo, "", paymentPoolId));
        if (stringResponseEntity.getStatusCode().is2xxSuccessful()) {
            return  "1";
        }
        return "0";
    }
}