Browse Source

宿迁改成厦门

hfxc226 2 weeks ago
parent
commit
2cc4eef88e

+ 3 - 3
platform-dao/src/main/resources/application-daoDev.yml

@@ -32,9 +32,9 @@ spring:
         validation-query: SELECT 'x'
         validation-query: SELECT 'x'
       slave:
       slave:
         driver-class-name: com.mysql.cj.jdbc.Driver
         driver-class-name: com.mysql.cj.jdbc.Driver
-        url: jdbc:mysql://123.60.19.203:3306/suqian-sb?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=false&serverTimezone=GMT%2B8&autoReconnect=true&allowMultiQueries=true
-        username: root
-        password: 123456
+        url: jdbc:mysql://123.60.19.203:3306/xm-sb?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=false&serverTimezone=GMT%2B8&autoReconnect=true&allowMultiQueries=true
+        username: admin_qykh
+        password: XC_love_hwy_518
         filters: wall,stat
         filters: wall,stat
         filter:
         filter:
           stat:
           stat:

+ 1 - 1
platform-dao/src/main/resources/application-daoProd.yml

@@ -32,7 +32,7 @@ spring:
         validation-query: SELECT 'x'
         validation-query: SELECT 'x'
       slave:
       slave:
         driver-class-name: com.mysql.cj.jdbc.Driver
         driver-class-name: com.mysql.cj.jdbc.Driver
-        url: jdbc:mysql://192.168.0.170:3306/suqian-sb?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=false&serverTimezone=GMT%2B8&autoReconnect=true&allowMultiQueries=true
+        url: jdbc:mysql://192.168.0.170:3306/xiamen-sb?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=false&serverTimezone=GMT%2B8&autoReconnect=true&allowMultiQueries=true
         username: root
         username: root
         password: xc_love_hwy_518
         password: xc_love_hwy_518
         filters: wall,stat
         filters: wall,stat

+ 2 - 2
platform-dao/src/main/resources/application-daoTest.yml

@@ -6,7 +6,7 @@ spring:
         #url: jdbc:mysql://123.60.19.203:5006/qykh_wms?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8&autoReconnect=true&allowMultiQueries=true
         #url: jdbc:mysql://123.60.19.203:5006/qykh_wms?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8&autoReconnect=true&allowMultiQueries=true
         #username: sb-test
         #username: sb-test
         #password: sb?MYSQL716
         #password: sb?MYSQL716
-        url: jdbc:mysql://123.60.19.203:5006/suqian-sb?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8&autoReconnect=true&allowMultiQueries=true
+        url: jdbc:mysql://123.60.19.203:5006/xiamen-sb?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8&autoReconnect=true&allowMultiQueries=true
         username: root
         username: root
         password: mysql?MYSQLmoniu123
         password: mysql?MYSQLmoniu123
         filters: wall,stat
         filters: wall,stat
@@ -35,7 +35,7 @@ spring:
         validation-query: SELECT 'x'
         validation-query: SELECT 'x'
       slave:
       slave:
         driver-class-name: com.mysql.cj.jdbc.Driver
         driver-class-name: com.mysql.cj.jdbc.Driver
-        url: jdbc:mysql://123.60.19.203:5006/suqian-sb?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8&autoReconnect=true&allowMultiQueries=true
+        url: jdbc:mysql://123.60.19.203:5006/xiamen-sb?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8&autoReconnect=true&allowMultiQueries=true
         username: root
         username: root
         password: mysql?MYSQLmoniu123
         password: mysql?MYSQLmoniu123
         filters: wall,stat
         filters: wall,stat

+ 3 - 3
platform-rest/src/main/java/com/platform/rest/controller/wechat/WechatController.java

@@ -41,8 +41,8 @@ public class WechatController {
 
 
     // 微信回调url
     // 微信回调url
     //private static String WECHAT_REDIRECT_URL = Global.getValue("wechat_url") + "/wechat/oauth.htm";
     //private static String WECHAT_REDIRECT_URL = Global.getValue("wechat_url") + "/wechat/oauth.htm";
-    private static String WECHAT_REDIRECT_URL = "http://sb.pc.litian2017.com/api/suqian/wechat/oauth";// 统一认证地址,多个系统可以共用,关注的公众号是:乾元坤和科技有限公司
-    private static String WECHAT_REDIRECT_URL_LOGIN = "http://sb.pc.litian2017.com/api/suqian/wechat/login";// 统一登录回调地址,关注的公众号是:乾元坤和科技有限公司
+    private static String WECHAT_REDIRECT_URL = "http://sb.pc.litian2017.com/api/xiamen/wechat/oauth";// 统一认证地址,多个系统可以共用,关注的公众号是:乾元坤和科技有限公司
+    private static String WECHAT_REDIRECT_URL_LOGIN = "http://sb.pc.litian2017.com/api/xiamen/wechat/login";// 统一登录回调地址,关注的公众号是:乾元坤和科技有限公司
 
 
     private final SysUserService sysUserService;
     private final SysUserService sysUserService;
 
 
@@ -130,7 +130,7 @@ public class WechatController {
         JsonOauthAccessTokenResponse wechatResponse = WeChatConnectService.getOauthAccessToken(code);
         JsonOauthAccessTokenResponse wechatResponse = WeChatConnectService.getOauthAccessToken(code);
         String openId = wechatResponse.getOpenid();
         String openId = wechatResponse.getOpenid();
         log.info("微信的openId: " + openId);
         log.info("微信的openId: " + openId);
-        response.sendRedirect("https://suqian.m.litian2017.com/#/pages/setting/wechat-oauth?openId=" + openId);
+        response.sendRedirect("https://xiamen.m.litian2017.com/#/pages/setting/wechat-oauth?openId=" + openId);
     }
     }
 
 
     /**
     /**

+ 3 - 3
platform-rest/src/main/java/com/platform/rest/controller/wechat/WechatRedirectController.java

@@ -21,7 +21,7 @@ import java.io.IOException;
 @RestController
 @RestController
 @AllArgsConstructor
 @AllArgsConstructor
 @Slf4j
 @Slf4j
-@RequestMapping("/suqian")
+@RequestMapping("/xiamen")
 public class WechatRedirectController {
 public class WechatRedirectController {
 
 
     private final static String WECHAT_STATE = "wechat_state";
     private final static String WECHAT_STATE = "wechat_state";
@@ -41,7 +41,7 @@ public class WechatRedirectController {
         JsonOauthAccessTokenResponse wechatResponse = WeChatConnectService.getOauthAccessToken(code);
         JsonOauthAccessTokenResponse wechatResponse = WeChatConnectService.getOauthAccessToken(code);
         String openId = wechatResponse.getOpenid();
         String openId = wechatResponse.getOpenid();
         log.info("微信的openId: " + openId);
         log.info("微信的openId: " + openId);
-        response.sendRedirect("https://suqian.m.litian2017.com/#/pages/setting/wechat-oauth?openId=" + openId);
+        response.sendRedirect("https://xiamen.m.litian2017.com/#/pages/setting/wechat-oauth?openId=" + openId);
     }
     }
 
 
     /**
     /**
@@ -55,6 +55,6 @@ public class WechatRedirectController {
     @RequestMapping(value = "/wechat/login", method = RequestMethod.GET)
     @RequestMapping(value = "/wechat/login", method = RequestMethod.GET)
     public void login(HttpServletRequest request, HttpServletResponse response, @RequestParam String code) throws IOException {
     public void login(HttpServletRequest request, HttpServletResponse response, @RequestParam String code) throws IOException {
         // 获取用户的openid和access_token
         // 获取用户的openid和access_token
-        response.sendRedirect("https://suqian.m.litian2017.com/#/pages/home/home?code=" + code);
+        response.sendRedirect("https://xiamen.m.litian2017.com/#/pages/home/home?code=" + code);
     }
     }
 }
 }

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

@@ -80,7 +80,7 @@ ignore:
     - /service/**
     - /service/**
     - /ignores/**
     - /ignores/**
     - /wechat/**
     - /wechat/**
-    - /suqian/**
+    - /xiamen/**
     - /upms/configs/**
     - /upms/configs/**
     - /sqarepartmanage/spare-part-info/**
     - /sqarepartmanage/spare-part-info/**
     - /store/in-store-forms/**
     - /store/in-store-forms/**

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

@@ -65,7 +65,7 @@ ignore:
     - /service/**
     - /service/**
     - /ignores/**
     - /ignores/**
     - /wechat/**
     - /wechat/**
-    - /suqian/**
+    - /xiamen/**
     - /sb/infos/page
     - /sb/infos/page
     - /upms/dicts/type
     - /upms/dicts/type
     - /upms/login/quickly/page
     - /upms/login/quickly/page

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

@@ -60,7 +60,7 @@ ignore:
     - /service/**
     - /service/**
     - /ignores/**
     - /ignores/**
     - /wechat/**
     - /wechat/**
-    - /suqian/**
+    - /xiamen/**
     - /sb/infos/page
     - /sb/infos/page
     - /upms/dicts/type
     - /upms/dicts/type
     - /upms/login/quickly/page
     - /upms/login/quickly/page

+ 1 - 1
platform-service/src/main/java/com/platform/service/wechat/util/WeChatMessageUtil.java

@@ -26,7 +26,7 @@ public class WeChatMessageUtil {
     public static String template_id_repair = "0dnkGN5y0SkKjc2zjKvzxkTv7O1QIWbekrY2h9HyK_4";
     public static String template_id_repair = "0dnkGN5y0SkKjc2zjKvzxkTv7O1QIWbekrY2h9HyK_4";
     public static String template_id_send_repair = "nwXLv3IOVd0l1F_Mvjy87nwUeiY952qXnDXA5qP0jt4";
     public static String template_id_send_repair = "nwXLv3IOVd0l1F_Mvjy87nwUeiY952qXnDXA5qP0jt4";
     // 移动端跳转的维修单地址:跳转到小程序的
     // 移动端跳转的维修单地址:跳转到小程序的
-    private static String repair_url = "https://suqian.m.litian2017.com/#/pages/service/service?filter=0";
+    private static String repair_url = "https://xiamen.m.litian2017.com/#/pages/service/service?filter=0";
 
 
     private static boolean isSend() {
     private static boolean isSend() {
         String isSend = ConfigCache.getLabelByValueAllowNull(SysConfigEnum.IS_SEND_WX_MESSAGE.name());
         String isSend = ConfigCache.getLabelByValueAllowNull(SysConfigEnum.IS_SEND_WX_MESSAGE.name());