Browse Source

修复登录提示未能正确发送的问题

tuonina 5 years ago
parent
commit
075e7ee2ce

+ 1 - 1
tuon-qywx/src/main/java/cn/tonyandmoney/tuon/qywx/QywxProperties.java

@@ -27,7 +27,7 @@ public class QywxProperties {
     /**
      * 每当用户登录的时候,给用户发送消息
      */
-    private String welcome="您已登陆应用!";
+    private String welcome="欢迎访问应用!";
 
 
     public void setAgentId(String agentId) {

+ 1 - 1
tuon-qywx/src/main/kotlin/cn/tonyandmoney/tuon/qywx/controller/QywxController.kt

@@ -81,7 +81,7 @@ class QywxController {
                 .flatMap { info ->
                     val msg = WxMsgTo().apply {
                         touser = info.userId
-                        text = WxMsgTo.Text().apply {  properties.welcome }
+                        text = WxMsgTo.Text().apply { content = properties.welcome }
                     }
                     msgService.sendMsgTo(msg)
                     Mono.just(BaseResp.ok(info))

+ 1 - 0
tuon-web/src/main/resources/bootstrap.yml

@@ -26,6 +26,7 @@ spring:
 eureka:
   instance:
     prefer-ip-address: true
+    ip-address: 192.168.42.12
   client:
     service-url:
       defaultZone: http://config.tonyandmoney.cn/eureka/