| | |
| | | import lombok.extern.slf4j.Slf4j; |
| | | |
| | | import java.math.BigDecimal; |
| | | import java.net.InetAddress; |
| | | import java.net.UnknownHostException; |
| | | import java.text.SimpleDateFormat; |
| | | import java.util.*; |
| | | |
| | |
| | | tradePayOffData.setScene("TRAFFIC"); |
| | | tradePayOffData.setCurrency("RMB"); |
| | | tradePayOffData.setRetUrl(""); |
| | | tradePayOffData.setClientIp(System.getProperty("http.remoteAddr")); |
| | | InetAddress inetAddress = null; |
| | | try { |
| | | inetAddress = InetAddress.getLocalHost(); |
| | | } catch (UnknownHostException e) { |
| | | throw new RuntimeException(e); |
| | | } |
| | | String ip = inetAddress.getHostAddress(); |
| | | tradePayOffData.setClientIp(ip); |
| | | tradePayOffData.setNeedLoginFlag("N"); |
| | | tradePayOffData.setAccessMode("APP"); |
| | | List<PaymentInfoRequest> paymentInfoRequests = new ArrayList<>(); |