| | |
| | | //进件成功后注册账户 并保存资方信息 |
| | | CustomerUser customerUser = initCustomer(capitalInfo, customer, logNumber); |
| | | JSONObject param = new JSONObject(); |
| | | // RbResponse rbResponse = checkUser(capitalInfo, customer, customerUser); |
| | | RbResponse rbResponse = checkUser(capitalInfo, customer, customerUser); |
| | | isSucc = push(customer, param, logNumber); |
| | | // if (Objects.equals("200",rbResponse.getCode())){ |
| | | // isSucc = true; |
| | |
| | | paramMap.put("mobile", phone); |
| | | paramMap.put("extno", "10690347"); |
| | | paramMap.put("rt", RT); |
| | | log.info("进件时获取到手机号短信通知日志: 用户手机={},请求参数={}", phone,paramMap); |
| | | String result = HttpUtil.post(URL, paramMap, Constants.TIME_OUT); |
| | | log.info("青花优品进件获取到手机号短信通知日志: 用户手机:" + phone + "原短信商" + "验证码发送返回成功"); |
| | | if (StringUtils.isNotBlank(result)) { |
| | | JSONObject jsonResults = JSONUtil.parseObj(result); |
| | | return Constants.SUCCESS_CODE.equals(jsonResults.getStr(STATUS)); |
| | | log.info("进件时获取到手机号短信通知日志: 用户手机={},返回参数={}", phone,result); |
| | | boolean status = Constants.SUCCESS_CODE.equals(jsonResults.getStr(STATUS)); |
| | | if (status){ |
| | | log.info("进件时获取到手机号短信通知日志: 用户手机={},发送返回成功", phone); |
| | | }else { |
| | | log.info("进件时获取到手机号短信通知日志: 用户手机={},发送返回失败", phone); |
| | | } |
| | | return status; |
| | | } |
| | | return false; |
| | | } |
| | |
| | | public void smsNotify(String phone) { |
| | | String content = "【乐享融】您申请的信用额已通过审核,请1小时内查看【" + smsNotifyUrl + "】 过期作废!拒收请回复R"; |
| | | boolean success = FirstMessage.sendSmsApprovalNotify(phone, content); |
| | | log.info("进件时手机号短信通知日志: 用户手机:" + phone + "原短信商" + "验证码发送返回成功"); |
| | | if (!success) { |
| | | log.info("进件时手机号短信通知日志: 用户手机:" + phone + "原短信商" + "验证码发送返回失败"); |
| | | throw new CommonException("验证码发送失败"); |
| | | log.info("进件时短信通知日志: 用户手机:" + phone + "原短信商" + "发送返回失败"); |
| | | throw new CommonException("进件时短信通知发送失败"); |
| | | } |
| | | |
| | | log.info("进件时短信通知日志: 用户手机:" + phone + "原短信商" + "发送返回成功"); |
| | | } |
| | | |
| | | /** |