|
|
@@ -9,6 +9,7 @@ import org.springframework.stereotype.Component;
|
|
|
|
|
|
import javax.annotation.PostConstruct;
|
|
|
import java.util.Map;
|
|
|
+import java.util.logging.Logger;
|
|
|
|
|
|
/**
|
|
|
* @author wangmh
|
|
|
@@ -28,7 +29,7 @@ public class MessageUtils {
|
|
|
private SettingService settingService;
|
|
|
|
|
|
private static MessageUtils messageUtils;
|
|
|
-
|
|
|
+ protected final Logger logger = Logger.getLogger(MessageUtils.class.getName());
|
|
|
@PostConstruct
|
|
|
public void init() {
|
|
|
messageUtils = this;
|
|
|
@@ -49,7 +50,7 @@ public class MessageUtils {
|
|
|
}
|
|
|
}
|
|
|
} catch (Exception e) {
|
|
|
- e.printStackTrace();
|
|
|
+ messageUtils.logger.warning("验证码发送失败:mobile:" + mobile + " msg: " + e.getMessage());
|
|
|
}
|
|
|
}
|
|
|
|