From cc5cf127da76d03ce7086da4d70f34b20e9803e0 Mon Sep 17 00:00:00 2001
From: admin <1101184511@qq.com>
Date: 星期三, 30 七月 2025 01:57:55 +0800
Subject: [PATCH] 功能完善

---
 src/main/java/com/taoke/autopay/factory/OrderFactory.java |    9 ++++++++-
 1 files changed, 8 insertions(+), 1 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..6b65a0d 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;
@@ -65,7 +67,7 @@
                 .build();
     }
 
-    private static String getOrderStateDesc(Integer orderState, Integer orderType) {
+    public static String getOrderStateDesc(Integer orderState, Integer orderType) {
 
         if (orderState == null || orderType == null) {
             return "鏈煡";
@@ -112,6 +114,11 @@
         OrderChannelEnum orderChannel=OrderChannelUtil.getChannelByKey(order.getOrderChannel());
         vo.setOrderChannel(orderChannel==null?"鏈煡":orderChannel.getName());
         vo.setPayMerchant(order.getPayMerchant());
+        vo.setIp(order.getIp());
+        vo.setIgnore(order.getIgnore());
+        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