浏览代码

更新!

TRX 1 年之前
父节点
当前提交
bfc85ede37

+ 2 - 2
FullCardServer/src/main/java/com/zhongshu/card/server/core/init/DataiInit.java → FullCardServer/src/main/java/com/zhongshu/card/server/core/init/DataInit.java

@@ -1,7 +1,6 @@
 package com.zhongshu.card.server.core.init;
 
 import com.zhongshu.card.server.core.service.devices.DeviceInfoServiceImpl;
-import com.zhongshu.card.server.core.service.openAPI.OpenAPIRegisterService;
 import com.zhongshu.card.server.core.service.paySetting.ProjectChannelConfigService;
 import lombok.extern.slf4j.Slf4j;
 import org.springframework.beans.factory.annotation.Autowired;
@@ -19,7 +18,7 @@ import java.util.concurrent.TimeUnit;
  */
 @Component
 @Slf4j
-public class DataiInit implements CommandLineRunner {
+public class DataInit implements CommandLineRunner {
 
     @Autowired
     private ProjectChannelConfigService projectChannelConfigService;
@@ -31,6 +30,7 @@ public class DataiInit implements CommandLineRunner {
     public void run(String... args) throws Exception {
         CompletableFuture.runAsync(() -> {
             try {
+                log.info("...DataInit...");
                 TimeUnit.SECONDS.sleep(20);
                 // 初始平台的支付产品
                 projectChannelConfigService.initAllChannel();

+ 10 - 1
FullCardServer/src/main/java/com/zhongshu/card/server/core/service/paySetting/ProjectChannelConfigService.java

@@ -99,22 +99,31 @@ public class ProjectChannelConfigService extends SuperService {
         param.setName("拉卡拉免密支付");
         param.setPaymentChannelType(PaymentChannelType.SecretFreePayment);
         param.setPaymentType(PaymentType.LakalaFrictionlessPay);
+        param.setSort(1L);
         savePayChannelConfig(param);
 
         PayChannelConfigParam unionPayParam = new PayChannelConfigParam();
         unionPayParam.setName("云闪付免密支付");
         unionPayParam.setPaymentChannelType(PaymentChannelType.SecretFreePayment);
         unionPayParam.setPaymentType(PaymentType.UnionFrictionlessPay);
+        unionPayParam.setSort(2L);
         savePayChannelConfig(unionPayParam);
 
         // 余额支付  微信充值
         PayChannelConfigParam balanceParam = new PayChannelConfigParam();
         balanceParam.setName("余额支付");
         balanceParam.setPaymentChannelType(PaymentChannelType.BalancePayment);
-        balanceParam.setSort(2L);
+        balanceParam.setSort(3L);
         balanceParam.setPaymentType(PaymentType.WeChat);
         savePayChannelConfig(balanceParam);
 
+        PayChannelConfigParam wxPayParam = new PayChannelConfigParam();
+        wxPayParam.setName("微信支付");
+        wxPayParam.setPaymentChannelType(PaymentChannelType.WxPayment);
+        wxPayParam.setSort(4L);
+        wxPayParam.setPaymentType(PaymentType.WeChatPay);
+        savePayChannelConfig(wxPayParam);
+
         return ResultContent.buildSuccess();
     }