| | |
| | | import com.github.qcloudsms.SmsSingleSender;
|
| | | import com.github.qcloudsms.SmsSingleSenderResult;
|
| | | import com.github.qcloudsms.httpclient.HTTPException;
|
| | | import com.yeshi.fanli.exception.SMSException;
|
| | | import com.yeshi.fanli.exception.config.SMSException;
|
| | |
|
| | | //腾讯短信发送
|
| | | public class TencentSMSUtil {
|
| | |
| | | * @param phone
|
| | | * @param msg
|
| | | */
|
| | | public static void sendSingleMsg(String phone, String msg) throws SMSException {
|
| | | public static void sendSingleMsg( String phone, String msg) throws SMSException {
|
| | | SmsSingleSender ssender = new SmsSingleSender(Integer.parseInt(Constant.smsConfig.getSmsAppId()),
|
| | | Constant.smsConfig.getSmsAppKey());
|
| | | SmsSingleSenderResult result = null;
|