use of com.itrus.portal.db.SmsGateExample in project portal by ixinportal.
the class SmsGateController method show.
// 显示详情
@RequestMapping(produces = "text/html")
public String show(Model uiModel) {
try {
SmsGate smsGate = smsGateService.getSmsGateByExample(new SmsGateExample());
if (smsGate == null) {
return "redirect:/smsgate?form";
}
uiModel.addAttribute("smsgate", smsGate);
} catch (Exception e) {
e.printStackTrace();
uiModel.addAttribute("errMsg", "解密密码失败");
}
return "smsgate/show";
}
use of com.itrus.portal.db.SmsGateExample in project portal by ixinportal.
the class SmsSendService method sendSms4three.
/**
* 用于第三方短信服务
*
* @param mobile
* @param content
* @return
*/
public boolean sendSms4three(String mobile, String content) throws Exception {
boolean ret = false;
SmsGate smsGate = smsGateService.getSmsGateByExample(new SmsGateExample());
// 判断调用哪个接口发送短信,gateType为0时,调用亿美,否则调用之前配置发送短信
if (smsGate.getGateType() == 0) {
ret = sendSmsByEmay(smsGate, mobile, content, "sendSms4three", null, null, null);
// ret = true;// TODO 暂时屏蔽发送短信
} else {
// ret = sendSms(smsGate, mobile, content, "sendSms4three", null, null, null);
// 调用未来无线接口
ret = wlsendSms(smsGate, mobile, content, "sendSms4three", null, null, null);
}
return ret;
}
Aggregations