| | |
| | | import com.yami.trading.service.syspara.SysparaService; |
| | | import com.yami.trading.service.system.CodeLogService; |
| | | import org.apache.commons.codec.digest.DigestUtils; |
| | | import org.apache.commons.lang3.StringEscapeUtils; |
| | | import org.slf4j.Logger; |
| | | import org.slf4j.LoggerFactory; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | |
| | | } |
| | | |
| | | if ("GoTone".equals(send_code_type)) { |
| | | goToneSmsUtils.sendSms(target, MessageFormat.format(send_code_text, new Object[] { code })); |
| | | String response = goToneSmsUtils.sendSms(target, MessageFormat.format(send_code_text, new Object[] { code })); |
| | | logger.info(MessageFormat.format("GoTone--target:{0},code:{1},ip:{2}", target, code, ip)); |
| | | String responseWithChinese = StringEscapeUtils.unescapeJava(response); |
| | | System.out.println("中文发送结果: " + responseWithChinese); |
| | | } |
| | | |
| | | |