Skip to content

Commit

Permalink
fix:推送空指针bug
Browse files Browse the repository at this point in the history
  • Loading branch information
oddfar committed Jul 22, 2023
1 parent 59ad82d commit af849fe
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ public static void reservation(IUser iUser, String shopId, JSONObject json) {

if (json.getString("code").equals("2000")) {
operLog.setLogName("预约成功");
operLog.setStatus(0);
} else {
operLog.setLogName("预约失败");
operLog.setStatus(1);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Async;
import org.springframework.stereotype.Service;

import javax.annotation.PostConstruct;
Expand Down Expand Up @@ -96,6 +97,7 @@ public void refreshMTVersion() {
getMTVersion();
}

@Async
@Override
public boolean sendCode(String mobile) {
Map<String, Object> data = new HashMap<>();
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.2
version: 1.0.3

server:
port: 8160
Expand Down

0 comments on commit af849fe

Please sign in to comment.