Przeglądaj źródła

line pay sendbody log out add

liuzf 3 lat temu
rodzic
commit
9fb7b3a23a

+ 5 - 1
ruoyi-admin/src/main/java/com/ruoyi/web/line/LinePay.java

@@ -139,7 +139,11 @@ public class LinePay  implements Serializable {
 
 			HttpPost request = new HttpPost(lineConfig.payUrl);
 	
-			setHeaderAndEntity(request, mapper.writeValueAsString(sendBody));
+			String sendBodyStr = mapper.writeValueAsString(sendBody);
+			
+			log.info(sendBodyStr);
+			 
+			setHeaderAndEntity(request, sendBodyStr);
 			
 			response = client.execute(request, httpResponse ->
 		       mapper.readValue(EntityUtils.toString(httpResponse.getEntity()), LinePayAPOD.class));