From fa677dec1c55db004a31beefb1e346e18c7858c2 Mon Sep 17 00:00:00 2001
From: admin <weikou2014>
Date: 星期四, 20 二月 2025 18:41:29 +0800
Subject: [PATCH] bug修改

---
 src/main/java/com/taoke/autopay/factory/OrderFactory.java |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/src/main/java/com/taoke/autopay/factory/OrderFactory.java b/src/main/java/com/taoke/autopay/factory/OrderFactory.java
index 21b4df4..d5bf9f4 100644
--- a/src/main/java/com/taoke/autopay/factory/OrderFactory.java
+++ b/src/main/java/com/taoke/autopay/factory/OrderFactory.java
@@ -1,11 +1,13 @@
 package com.taoke.autopay.factory;
 
+import com.google.gson.Gson;
 import com.taoke.autopay.entity.ClientInfo;
 import com.taoke.autopay.entity.KeyOrder;
 import com.taoke.autopay.entity.OrderChannelEnum;
 import com.taoke.autopay.entity.WxUserOrderCount;
 import com.taoke.autopay.entity.agent.ChannelAgent;
 import com.taoke.autopay.utils.Constant;
+import com.taoke.autopay.utils.IPUtil;
 import com.taoke.autopay.utils.StringUtil;
 import com.taoke.autopay.utils.TimeUtil;
 import com.taoke.autopay.utils.order.OrderChannelUtil;
@@ -112,6 +114,10 @@
         OrderChannelEnum orderChannel=OrderChannelUtil.getChannelByKey(order.getOrderChannel());
         vo.setOrderChannel(orderChannel==null?"鏈煡":orderChannel.getName());
         vo.setPayMerchant(order.getPayMerchant());
+        vo.setIp(order.getIp());
+        if(!StringUtil.isNullOrEmpty(order.getIpInfo())){
+            vo.setIpInfo(new Gson().fromJson(order.getIpInfo(), IPUtil.IPInfo.class));
+        }
         if(agent!=null){
             vo.setAgent(agent.getName());
         }else{

--
Gitblit v1.8.0