| | |
| | | import cn.exrick.xboot.core.service.SettingService; |
| | | import cn.exrick.xboot.core.vo.SmsSetting; |
| | | import cn.hutool.core.util.StrUtil; |
| | | import com.aliyuncs.exceptions.ClientException; |
| | | import com.google.gson.Gson; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | |
| | | |
| | | @Autowired |
| | | private SettingService settingService; |
| | | |
| | | @Autowired |
| | | private SmsFactory smsFactory; |
| | | |
| | | public String getSmsUsed() { |
| | | |
| | |
| | | * @param code |
| | | * @param type 0通用模版 1注册 2登录 3修改手机 4修改密码 5重置密码 6工作流模版 |
| | | * @return |
| | | * @throws ClientException |
| | | */ |
| | | public void sendCode(String mobile, String code, Integer type) { |
| | | |
| | |
| | | * @param code |
| | | * @param templateCode |
| | | * @return |
| | | * @throws ClientException |
| | | */ |
| | | public void sendCode(String mobile, String code, String templateCode) { |
| | | |
| | |
| | | * @param mobile |
| | | * @param content |
| | | * @return |
| | | * @throws ClientException |
| | | */ |
| | | public void sendActMessage(String mobile, String content) { |
| | | |
| | |
| | | */ |
| | | public void sendSms(String mobile, String params, String templateCode) { |
| | | |
| | | smsFactory.getSms().sendSms(mobile, params, templateCode); |
| | | //smsFactory.getSms().sendSms(mobile, params, templateCode); |
| | | } |
| | | } |