| | |
| | | import com.xinquan.auth.form.AppLoginBody; |
| | | import com.xinquan.auth.form.AppRegisterBody; |
| | | import com.xinquan.auth.form.VerifyResultVO; |
| | | import com.xinquan.auth.util.HWSendSms; |
| | | import com.xinquan.auth.util.HuaWeiSMSUtil; |
| | | import com.xinquan.common.core.constant.CacheConstants; |
| | | import com.xinquan.common.core.constant.Constants; |
| | |
| | | default: |
| | | return ""; |
| | | } |
| | | |
| | | } |
| | | @Autowired |
| | | private HWSendSms hwSendSms; |
| | | /** |
| | | * 发送验证码 |
| | | * |
| | |
| | | TimeUnit.MINUTES); |
| | | log.info("发送验证码成功,手机号:{} 验证码:{}", cellPhone, code); |
| | | // TODO 修改sender参数及templateId |
| | | HuaWeiSMSUtil.sendSms("[\"" + code + "\"]", cellPhone, "8824110423893", |
| | | "767ad27dce184a32a4b4863517fbd301"); |
| | | // hwSendSms.sendSms(code, cellPhone); |
| | | // HuaWeiSMSUtil.sendSms("[\"" + code + "\"]", cellPhone, "8824110423893", |
| | | // "767ad27dce184a32a4b4863517fbd301"); |
| | | |
| | | hwSendSms.sendSms(code, cellPhone); |
| | | } catch (Exception e) { |
| | | log.error("发送短信失败", e); |
| | | throw new ServiceException("验证码发送失败"); |