xiongchao 3 년 전
부모
커밋
848d08bd50

+ 5 - 4
platform-rest/src/main/resources/application-dev.yml

@@ -52,11 +52,12 @@ spring:
       maxFileSize: "100MB"
       maxRequestSize: "1000MB"
   mail:
-    host: smtp.exmail.qq.com #发送邮件服务器
-    username: chenyh@tuzhiall.com #发送邮件的邮箱地址
-    password:  Chenyuehu521 #客户端授权码,不是邮箱密码,这个在qq邮箱设置里面自动生成的
+    host: smtp.qq.com #发送邮件服务器
+    username: 370516181@qq.com #发送邮件的邮箱地址
+    password: aycpczvrnthpbgie #客户端授权码,不是邮箱密码,这个在qq邮箱设置里面自动生成的
+    #password: p8ba59KF8wijE7yU
     properties.mail.smtp.port: 465 #端口号465或587
-    from: chenyh@tuzhiall.com # 发送邮件的地址,和上面username一致
+    from: 370516181@qq.com # 发送邮件的地址,和上面username一致
     properties.mail.smtp.starttls.enable: true
     properties.mail.smtp.starttls.required: true
     properties.mail.smtp.ssl.enable: true

+ 5 - 4
platform-rest/src/main/resources/application-prod.yml

@@ -37,11 +37,12 @@ spring:
       maxFileSize: "100MB"
       maxRequestSize: "1000MB"
   mail:
-    host: smtp.exmail.qq.com #发送邮件服务器
-    username: chenyh@tuzhiall.com #发送邮件的邮箱地址
-    password:  Chenyuehu521 #客户端授权码,不是邮箱密码,这个在qq邮箱设置里面自动生成的
+    host: smtp.qq.com #发送邮件服务器
+    username: 370516181@qq.com #发送邮件的邮箱地址
+    password: aycpczvrnthpbgie #客户端授权码,不是邮箱密码,这个在qq邮箱设置里面自动生成的
+    #password: p8ba59KF8wijE7yU
     properties.mail.smtp.port: 465 #端口号465或587
-    from: chenyh@tuzhiall.com # 发送邮件的地址,和上面username一致
+    from: 370516181@qq.com # 发送邮件的地址,和上面username一致
     properties.mail.smtp.starttls.enable: true
     properties.mail.smtp.starttls.required: true
     properties.mail.smtp.ssl.enable: true

+ 5 - 4
platform-rest/src/main/resources/application-test.yml

@@ -32,11 +32,12 @@ spring:
       maxFileSize: "100MB"
       maxRequestSize: "1000MB"
   mail:
-    host: smtp.exmail.qq.com #发送邮件服务器
-    username: chenyh@tuzhiall.com #发送邮件的邮箱地址
-    password:  Chenyuehu521 #客户端授权码,不是邮箱密码,这个在qq邮箱设置里面自动生成的
+    host: smtp.qq.com #发送邮件服务器
+    username: 370516181@qq.com #发送邮件的邮箱地址
+    password: aycpczvrnthpbgie #客户端授权码,不是邮箱密码,这个在qq邮箱设置里面自动生成的
+    #password: p8ba59KF8wijE7yU
     properties.mail.smtp.port: 465 #端口号465或587
-    from: chenyh@tuzhiall.com # 发送邮件的地址,和上面username一致
+    from: 370516181@qq.com # 发送邮件的地址,和上面username一致
     properties.mail.smtp.starttls.enable: true
     properties.mail.smtp.starttls.required: true
     properties.mail.smtp.ssl.enable: true

+ 2 - 2
platform-service/src/main/java/com/platform/service/repair/impl/RepairApplicationFormServiceImpl.java

@@ -299,8 +299,8 @@ public class RepairApplicationFormServiceImpl extends BaseServiceImpl<RepairAppl
       /*  for(String openId : openIds){
             WeChatMessageUtil.repairMessage( openId, repairUrl,model,sb);
         }*/
-        // 发送短信通知给第一维修人,和第二维修人,其他人不发短信
-        if(CollectionUtil.isNotEmpty(receiverList)){
+        // 发送短信通知给第一维修人,和第二维修人,其他人不发短信,且必须是正式环境
+        if(CollectionUtil.isNotEmpty(receiverList) && BeanUtils.isProd()){
             // String templateParas_repair = "[\"C-001\",\"1号车间\",\"熊超\"]";
             String no = sb.getNo();
             if(StringUtils.isNotBlank(no)){