|  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public  void sendSmsByHk(String phone,String content){ | 
|---|
|  |  |  | try { | 
|---|
|  |  |  | String url = systemDictDataBiz.queryByCode(Constants.HK_PARAM,Constants.HK_HTTPS).getCode() + | 
|---|
|  |  |  | systemDictDataBiz.queryByCode(Constants.HK_PARAM,Constants.HK_HOST).getCode() + | 
|---|
|  |  |  | HKConstants.ARTEMIS_PATH + | 
|---|
|  |  |  | HKConstants.InterfacePath.sendSms[0]; | 
|---|
|  |  |  | Map<String,Object> map = new HashMap<>(); | 
|---|
|  |  |  | map.put("phoneNo",phone.split(",")); | 
|---|
|  |  |  | map.put("content",content); | 
|---|
|  |  |  | BaseResponse result = HKService.sendSmsByHk(map,url); | 
|---|
|  |  |  | BaseResponse result = HKService.sendSms(map); | 
|---|
|  |  |  | if(result !=null){ | 
|---|
|  |  |  | if(!StringUtils.equals(result.getCode(),HKConstants.RESPONSE_SUCCEE)){ | 
|---|
|  |  |  | throw  new BusinessException(ResponseStatus.SERVER_ERROR.getCode(),result.getMsg()); | 
|---|
|  |  |  | 
|---|
|  |  |  | }catch (Exception e){ | 
|---|
|  |  |  | e.printStackTrace(); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | throw  new BusinessException(ResponseStatus.SERVER_ERROR.getCode(),"对不起,短信发送失败,请稍后重试!"); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  |  | 
|---|