package com.template.common.utils;

/**
 * @Author: xwt
 * @Date: 2023/4/20 星期四 8:26
 * @Description: common
 * @Version: 1.0
 */
public class smsUtil {
//    @Autowired
//    private static smsConfig smsConfig;
//
//    /**
//     * 发送单条短信验证码
//     * @param smmCode 短信验证码
//     * @param phoneNumber 手机号
//     * @return
//     */
//    public static void sendSingleMessage(String smmCode, String phoneNumber) throws HTTPException, IOException {
//        String[] params = {smmCode,Integer.toString(smsConfig.getSmsMin())};
//        SmsSingleSender ssender = new SmsSingleSender(smsConfig.getSdkAppid(), smsConfig.getAppKey());
//        SmsSingleSenderResult result = ssender.sendWithParam("86", phoneNumber, smsConfig.getTemplateId(), params, smsConfig.getSmsSign(), "", "");
//        System.out.println(result);
//    };
}
