Browse Source

发红包从配置里取配置

三七 1 month ago
parent
commit
c3664093df

+ 0 - 1
fs-common/pom.xml

@@ -51,7 +51,6 @@
         <dependency>
             <groupId>com.fasterxml.jackson.core</groupId>
             <artifactId>jackson-databind</artifactId>
-            <version>2.10.5.1</version>
         </dependency>
 
         <!-- 阿里JSON解析器 -->

+ 4 - 4
fs-service-system/src/main/java/com/fs/store/service/impl/FsStorePaymentServiceImpl.java

@@ -373,9 +373,9 @@ public class FsStorePaymentServiceImpl implements IFsStorePaymentService
                 config = JSONUtil.toBean(json, RedPacketConfig.class);
                 break;
         }
-        if (param.getSource()==2){
-            config.setAppId("wxb9b453d37c5fad45");
-        }
+//        if (param.getSource()==2){
+//            config.setAppId("wxb9b453d37c5fad45");
+//        }
         //组合返回参数
         R result = new R();
         // 根据 isNew 判断使用哪种发红包方式
@@ -385,7 +385,7 @@ public class FsStorePaymentServiceImpl implements IFsStorePaymentService
             result= sendRedPacketLegacyInternal(param, config);
         }
         result.put("isNew",config.getIsNew());
-        result.put("mchId","1716217886");
+        result.put("mchId",config.getMchId());
         System.out.println("发红包返回"+result);
         return result;
     }

+ 4 - 2
fs-user-app/pom.xml

@@ -113,8 +113,10 @@
             <groupId>com.fs</groupId>
             <artifactId>fs-service-system</artifactId>
         </dependency>
-
-
+        <dependency>
+            <groupId>com.fasterxml.jackson.core</groupId>
+            <artifactId>jackson-databind</artifactId>
+        </dependency>
     </dependencies>
 
     <build>