Skip to content

Commit 3628fd2

Browse files
committed
fix:返回的类型不匹配bug
1 parent af849fe commit 3628fd2

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

campus-modular/src/main/java/com/oddfar/campus/business/service/IMTService.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ public interface IMTService {
2020
*
2121
* @param mobile 手机号
2222
*/
23-
boolean sendCode(String mobile);
23+
Boolean sendCode(String mobile);
2424

2525
/**
2626
* 登录i茅台

campus-modular/src/main/java/com/oddfar/campus/business/service/impl/IMTServiceImpl.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ public void refreshMTVersion() {
9999

100100
@Async
101101
@Override
102-
public boolean sendCode(String mobile) {
102+
public Boolean sendCode(String mobile) {
103103
Map<String, Object> data = new HashMap<>();
104104
data.put("mobile", mobile);
105105
data.put("md5", signature(mobile));
@@ -138,7 +138,7 @@ public boolean sendCode(String mobile) {
138138
//成功返回 {"code":2000}
139139
logger.info("「发送验证码返回」:" + jsonObject.toJSONString());
140140
if (jsonObject.getString("code").equals("2000")) {
141-
return true;
141+
return Boolean.TRUE;
142142
} else {
143143
logger.error("「发送验证码-失败」:" + jsonObject.toJSONString());
144144
throw new ServiceException("发送验证码错误");

campus-modular/src/main/resources/application.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ campus:
33
# 名称
44
name: campus-imaotai
55
# 版本
6-
version: 1.0.3
6+
version: 1.0.4
77

88
server:
99
port: 8160

vue_campus_admin/src/views/index.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ export default {
2020
data() {
2121
return {
2222
// 版本号
23-
version: "1.0.1",
23+
version: "1.0.4",
2424
};
2525
},
2626
methods: {

0 commit comments

Comments
 (0)