Skip to content

Commit

Permalink
fix:返回的类型不匹配bug
Browse files Browse the repository at this point in the history
  • Loading branch information
oddfar committed Jul 23, 2023
1 parent af849fe commit 3628fd2
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public interface IMTService {
*
* @param mobile 手机号
*/
boolean sendCode(String mobile);
Boolean sendCode(String mobile);

/**
* 登录i茅台
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ public void refreshMTVersion() {

@Async
@Override
public boolean sendCode(String mobile) {
public Boolean sendCode(String mobile) {
Map<String, Object> data = new HashMap<>();
data.put("mobile", mobile);
data.put("md5", signature(mobile));
Expand Down Expand Up @@ -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("发送验证码错误");
Expand Down
2 changes: 1 addition & 1 deletion campus-modular/src/main/resources/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ campus:
# 名称
name: campus-imaotai
# 版本
version: 1.0.3
version: 1.0.4

server:
port: 8160
Expand Down
2 changes: 1 addition & 1 deletion vue_campus_admin/src/views/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export default {
data() {
return {
// 版本号
version: "1.0.1",
version: "1.0.4",
};
},
methods: {
Expand Down

0 comments on commit 3628fd2

Please sign in to comment.