| | |
| | | import cn.hutool.core.util.StrUtil;
|
| | | import cn.hutool.core.util.XmlUtil;
|
| | | import cn.hutool.http.HttpUtil;
|
| | | import lombok.extern.slf4j.Slf4j;
|
| | |
|
| | | @Slf4j
|
| | | public class Sms106Send {
|
| | |
|
| | | private static final String URL = "http://www.qf106.com/sms.aspx";
|
| | | private static final String ID = "16580";
|
| | | private static final String ACCOUNT = "Biue";
|
| | | private static final String ID = "16615";
|
| | | private static final String ACCOUNT = "hibit";
|
| | | private static final String PASSWORD = "123456";
|
| | |
|
| | |
|
| | |
| | | param.put("telephonenumber", 0);
|
| | |
|
| | | String response = HttpUtil.post(URL, param);
|
| | | log.info("发送短信:{}", response);
|
| | | if ("Success".equals(XmlUtil.xmlToMap(response).get("returnstatus"))) {
|
| | | return true;
|
| | | } else {
|