| 
														
															@@ -92,6 +92,7 @@ public class OriginalWxAppTemplate implements PaymentTemplate { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         try { 
														 | 
														
														 | 
														
															         try { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															             Object orderV3 = getWxPayService(payment.getPaymentClient()) 
														 | 
														
														 | 
														
															             Object orderV3 = getWxPayService(payment.getPaymentClient()) 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                     .createOrderV3(TradeTypeEnum.APP, request); 
														 | 
														
														 | 
														
															                     .createOrderV3(TradeTypeEnum.APP, request); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+            log.info("支付返回:{}", JSONObject.toJSONString(orderV3)); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															             Map<String, String> stringStringMap = SignUtils.xmlBean2Map(orderV3); 
														 | 
														
														 | 
														
															             Map<String, String> stringStringMap = SignUtils.xmlBean2Map(orderV3); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															             String msg = buildMessage( 
														 | 
														
														 | 
														
															             String msg = buildMessage( 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                     APP_ID, 
														 | 
														
														 | 
														
															                     APP_ID, 
														 | 
													
												
											
										
											
												
													
														 | 
														
															@@ -112,7 +113,7 @@ public class OriginalWxAppTemplate implements PaymentTemplate { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															             return BaseResult.succeed(payment); 
														 | 
														
														 | 
														
															             return BaseResult.succeed(payment); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         } catch (WxPayException e) { 
														 | 
														
														 | 
														
															         } catch (WxPayException e) { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															             log.error("微信APP支付请求失败:{}", e.toString()); 
														 | 
														
														 | 
														
															             log.error("微信APP支付请求失败:{}", e.toString()); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-            return BaseResult.failed(e.getReturnMsg()); 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+            return BaseResult.failed(e.toString()); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         } catch (Exception e) { 
														 | 
														
														 | 
														
															         } catch (Exception e) { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															             e.printStackTrace(); 
														 | 
														
														 | 
														
															             e.printStackTrace(); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															             return BaseResult.failed("微信APP支付请求失败"); 
														 | 
														
														 | 
														
															             return BaseResult.failed("微信APP支付请求失败"); 
														 | 
													
												
											
										
											
												
													
														 | 
														
															@@ -133,6 +134,7 @@ public class OriginalWxAppTemplate implements PaymentTemplate { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         try { 
														 | 
														
														 | 
														
															         try { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															             WxPayOrderQueryV3Result res = getWxPayService(payment.getPaymentClient()) 
														 | 
														
														 | 
														
															             WxPayOrderQueryV3Result res = getWxPayService(payment.getPaymentClient()) 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                     .queryOrderV3(param); 
														 | 
														
														 | 
														
															                     .queryOrderV3(param); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+            log.info("查询返回:{}", JSONObject.toJSONString(res)); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															  
														 | 
														
														 | 
														
															  
														 | 
													
												
											
												
													
														| 
														 | 
														
															             payment.setId(res.getTransactionId()); 
														 | 
														
														 | 
														
															             payment.setId(res.getTransactionId()); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															             String tradeState = res.getTradeState(); 
														 | 
														
														 | 
														
															             String tradeState = res.getTradeState(); 
														 | 
													
												
											
										
											
												
													
														 | 
														
															@@ -148,7 +150,7 @@ public class OriginalWxAppTemplate implements PaymentTemplate { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															             return BaseResult.succeed(payment); 
														 | 
														
														 | 
														
															             return BaseResult.succeed(payment); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         } catch (WxPayException e) { 
														 | 
														
														 | 
														
															         } catch (WxPayException e) { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															             log.error("微信APP支付查询请求失败:{}", e.toString()); 
														 | 
														
														 | 
														
															             log.error("微信APP支付查询请求失败:{}", e.toString()); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-            return BaseResult.failed(e.getReturnMsg()); 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+            return BaseResult.failed(e.toString()); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         } catch (Exception e) { 
														 | 
														
														 | 
														
															         } catch (Exception e) { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															             e.printStackTrace(); 
														 | 
														
														 | 
														
															             e.printStackTrace(); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															             return BaseResult.failed("微信APP支付查询请求失败"); 
														 | 
														
														 | 
														
															             return BaseResult.failed("微信APP支付查询请求失败"); 
														 | 
													
												
											
										
											
												
													
														 | 
														
															@@ -174,7 +176,7 @@ public class OriginalWxAppTemplate implements PaymentTemplate { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															             return BaseResult.succeed(closePayment); 
														 | 
														
														 | 
														
															             return BaseResult.succeed(closePayment); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         } catch (WxPayException e) { 
														 | 
														
														 | 
														
															         } catch (WxPayException e) { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															             log.error("微信APP支付关单请求失败:{}", e.toString()); 
														 | 
														
														 | 
														
															             log.error("微信APP支付关单请求失败:{}", e.toString()); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-            return BaseResult.failed(e.getReturnMsg()); 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+            return BaseResult.failed(e.toString()); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         } catch (Exception e) { 
														 | 
														
														 | 
														
															         } catch (Exception e) { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															             e.printStackTrace(); 
														 | 
														
														 | 
														
															             e.printStackTrace(); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															             return BaseResult.failed("微信APP支付关单请求失败"); 
														 | 
														
														 | 
														
															             return BaseResult.failed("微信APP支付关单请求失败"); 
														 | 
													
												
											
										
											
												
													
														 | 
														
															@@ -208,13 +210,14 @@ public class OriginalWxAppTemplate implements PaymentTemplate { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         try { 
														 | 
														
														 | 
														
															         try { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															             WxPayRefundV3Result res = getWxPayService(refundBill.getPaymentClient()) 
														 | 
														
														 | 
														
															             WxPayRefundV3Result res = getWxPayService(refundBill.getPaymentClient()) 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                     .refundV3(param); 
														 | 
														
														 | 
														
															                     .refundV3(param); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+            log.info("退款返回:{}", JSONObject.toJSONString(res)); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															  
														 | 
														
														 | 
														
															  
														 | 
													
												
											
												
													
														| 
														 | 
														
															             String refund_id = res.getRefundId(); 
														 | 
														
														 | 
														
															             String refund_id = res.getRefundId(); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															             refundBill.setId(refund_id); 
														 | 
														
														 | 
														
															             refundBill.setId(refund_id); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															             return BaseResult.succeed(refundBill); 
														 | 
														
														 | 
														
															             return BaseResult.succeed(refundBill); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         } catch (WxPayException e) { 
														 | 
														
														 | 
														
															         } catch (WxPayException e) { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															             log.error("微信APP支付请求失败:{}", e.toString()); 
														 | 
														
														 | 
														
															             log.error("微信APP支付请求失败:{}", e.toString()); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-            return BaseResult.failed(e.getReturnMsg()); 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+            return BaseResult.failed(e.toString()); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         } catch (Exception e) { 
														 | 
														
														 | 
														
															         } catch (Exception e) { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															             e.printStackTrace(); 
														 | 
														
														 | 
														
															             e.printStackTrace(); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															             return BaseResult.failed("微信APP支付关单请求失败"); 
														 | 
														
														 | 
														
															             return BaseResult.failed("微信APP支付关单请求失败"); 
														 | 
													
												
											
										
											
												
													
														 | 
														
															@@ -306,7 +309,7 @@ public class OriginalWxAppTemplate implements PaymentTemplate { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															             resMsg.put("message", "失败"); 
														 | 
														
														 | 
														
															             resMsg.put("message", "失败"); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															             paymentCallBack.setResMsg(resMsg); 
														 | 
														
														 | 
														
															             paymentCallBack.setResMsg(resMsg); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															             log.error("微信回调对象转换失败, param is {} , err is {}", params, e.toString()); 
														 | 
														
														 | 
														
															             log.error("微信回调对象转换失败, param is {} , err is {}", params, e.toString()); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-            return BaseResult.failed(HttpStatus.INTERNAL_SERVER_ERROR, paymentCallBack, "微信回调对象转换失败"); 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+            return BaseResult.failed(HttpStatus.INTERNAL_SERVER_ERROR, paymentCallBack, e.toString()); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         } catch (Exception e) { 
														 | 
														
														 | 
														
															         } catch (Exception e) { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															             e.printStackTrace(); 
														 | 
														
														 | 
														
															             e.printStackTrace(); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															             resMsg.put("code", "FAIL"); 
														 | 
														
														 | 
														
															             resMsg.put("code", "FAIL"); 
														 |