Quellcode durchsuchen

1.邮件提到公用配置

liuhy vor 2 Jahren
Ursprung
Commit
d22e61c8aa

+ 5 - 2
tnc-sms/src/main/java/org/jeecg/modules/smscheck/controller/SpecialExaminationContrller.java

@@ -82,6 +82,9 @@ public class SpecialExaminationContrller extends JeecgController<SmsCheckCustome
     @Autowired
     ISmsCheckTaskService iSmsCheckTaskService;
 
+    @Value("${special.email.audit.account}")
+    private String emailAccountSpecial;
+
 
     @ApiOperation(value = "客户资料-信息查询查询", notes = "客户资料-个人列表查询")
     @PostMapping(value = "/find/user/id")
@@ -217,12 +220,12 @@ public class SpecialExaminationContrller extends JeecgController<SmsCheckCustome
             // 发送邮件
             EmailSendMsgHandle emailSendMsgHandle = new EmailSendMsgHandle();
             //liutt3.bj@chinatelecom.cn
-   /*         emailSendMsgHandle.SendMsg("liutt3.bj@chinatelecom.cn",
+            emailSendMsgHandle.SendMsg(emailAccountSpecial,
                     customerInfo.getCreateBy() +
                             "提交复开申请", "工号:" + customerInfo.getStaffNo() +
                             " 工单创建人:" + customerInfo.getCreateBy() +
                             " 提交了复开号码为" + customerInfo.getSmsNumber() +
-                            "的复开申请,请及时进行稽核。");*/
+                            "的复开申请,请及时进行稽核。");
         }
         return Result.OK("已成功提交申请");
     }

+ 5 - 1
tnc-system/src/main/resources/application-dx.yml

@@ -318,4 +318,8 @@ third-app:
       client-secret: ??
       agent-id: ??
 password:
-  initial: s@Gr4n5h1P
+  initial: s@Gr4n5h1P
+special:
+  email:
+    audit:
+      account: liutt3.bj@chinatelecom.cn

+ 11 - 5
tnc-system/src/main/resources/application-test.yml

@@ -25,9 +25,9 @@ spring:
       max-file-size: 50MB
       max-request-size: 50MB
   mail:
-    host: smtp.163.com
-    username: jeecgos@163.com
-    password: ??
+    host: smtp.qq.com
+    username: 956901244@qq.com
+    password: fphnaaucbuqvbbbd
     properties:
       mail:
         smtp:
@@ -155,7 +155,7 @@ spring:
      host: 127.0.0.1
      port: 6379
      password: 123
-     #password:
+     #password: liuwm_123
      lettuce:
        pool:
          max-active: 8   #最大连接数据库连接数,设 -1 为没有限制
@@ -316,4 +316,10 @@ third-app:
       client-id: ??
       # appSecret
       client-secret: ??
-      agent-id: ??
+      agent-id: ??
+password:
+  initial: s@Gr4n5h1P
+special:
+  email:
+    audit:
+      account: 18406573812@163.com