| | |
| | | "\"Key\":\""+key+"\"," + |
| | | "\"Tel\":\""+tel+"\",\"MessageContent\":\""+messageContent+"\"}"; |
| | | String result=""; |
| | | result= HttpUtils.sendPost(url, Base64.getEncoder().encodeToString(content.getBytes()) ); |
| | | byte[] bytesToEncode = content.getBytes(java.nio.charset.StandardCharsets.UTF_8); |
| | | result= HttpUtils.sendPost(url, Base64.getEncoder().encodeToString(bytesToEncode) ); |
| | | |
| | | return result; |
| | | } |
| | |
| | | // 过滤请求 |
| | | .authorizeRequests() |
| | | // 对于登录login 注册register 验证码captchaImage 允许匿名访问 |
| | | .antMatchers("/login", "/openidlogin", "/register", "/captchaImage", "/getToken","/getCode").anonymous() |
| | | .antMatchers("/login", "/openidlogin", "/register", "/captchaImage", "/getToken","/GiLink/getCode").anonymous() |
| | | .antMatchers( |
| | | HttpMethod.GET, |
| | | "/", |
| | |
| | | import com.ruoyi.project.mapper.GiLinkMapper; |
| | | import com.ruoyi.project.service.IGiLinkService; |
| | | import com.ruoyi.system.service.ISysUserService; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.apache.commons.lang3.ObjectUtils; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.beans.factory.annotation.Value; |
| | |
| | | import java.util.Random; |
| | | |
| | | @Service |
| | | @Slf4j |
| | | public class GiLinkService extends ServiceImpl<GiLinkMapper, GiLink> implements IGiLinkService { |
| | | @Autowired |
| | | GiLinkMapper mapper; |
| | |
| | | String content = "案例上报通知:【青岛大学附属医院】" + toHospital |
| | | + "上报潜在捐献案例,请登录OPO系统查看详细信息,及时进行对接。登录链接:" + reportUrl + " 。"; |
| | | SmsUtils sms=new SmsUtils(); |
| | | log.info("上报发送短信:"+content); |
| | | res=sms.send(user.getPhonenumber(),content); |
| | | } |
| | | return res; |
| | |
| | | String content = "伦理专家审查通知:【青岛大学附属医院】尊敬的专家您好!您有紧急人体器官移植伦理审查申请待处理," + |
| | | "请务必于1小时内登录医院OPO系统进行审批。登录链接: " + expertUrl + "。谢谢 。"; |
| | | SmsUtils sms=new SmsUtils(); |
| | | log.info("专家发送短信:"+content); |
| | | res=sms.send(user.getPhonenumber(),content); |
| | | } |
| | | return res; |