diff --git a/campus-modular/src/main/java/com/oddfar/campus/business/service/IMTService.java b/campus-modular/src/main/java/com/oddfar/campus/business/service/IMTService.java index bacd695..35d9494 100644 --- a/campus-modular/src/main/java/com/oddfar/campus/business/service/IMTService.java +++ b/campus-modular/src/main/java/com/oddfar/campus/business/service/IMTService.java @@ -20,7 +20,7 @@ public interface IMTService { * * @param mobile 手机号 */ - boolean sendCode(String mobile); + Boolean sendCode(String mobile); /** * 登录i茅台 diff --git a/campus-modular/src/main/java/com/oddfar/campus/business/service/impl/IMTServiceImpl.java b/campus-modular/src/main/java/com/oddfar/campus/business/service/impl/IMTServiceImpl.java index 889bf25..6e3abb1 100644 --- a/campus-modular/src/main/java/com/oddfar/campus/business/service/impl/IMTServiceImpl.java +++ b/campus-modular/src/main/java/com/oddfar/campus/business/service/impl/IMTServiceImpl.java @@ -99,7 +99,7 @@ public void refreshMTVersion() { @Async @Override - public boolean sendCode(String mobile) { + public Boolean sendCode(String mobile) { Map data = new HashMap<>(); data.put("mobile", mobile); data.put("md5", signature(mobile)); @@ -138,7 +138,7 @@ public boolean sendCode(String mobile) { //成功返回 {"code":2000} logger.info("「发送验证码返回」:" + jsonObject.toJSONString()); if (jsonObject.getString("code").equals("2000")) { - return true; + return Boolean.TRUE; } else { logger.error("「发送验证码-失败」:" + jsonObject.toJSONString()); throw new ServiceException("发送验证码错误"); diff --git a/campus-modular/src/main/resources/application.yml b/campus-modular/src/main/resources/application.yml index f346ffc..ef05ed4 100644 --- a/campus-modular/src/main/resources/application.yml +++ b/campus-modular/src/main/resources/application.yml @@ -3,7 +3,7 @@ campus: # 名称 name: campus-imaotai # 版本 - version: 1.0.3 + version: 1.0.4 server: port: 8160 diff --git a/vue_campus_admin/src/views/index.vue b/vue_campus_admin/src/views/index.vue index 71b9f23..1bceb90 100644 --- a/vue_campus_admin/src/views/index.vue +++ b/vue_campus_admin/src/views/index.vue @@ -20,7 +20,7 @@ export default { data() { return { // 版本号 - version: "1.0.1", + version: "1.0.4", }; }, methods: {