提交 1eedb61e 作者: zhenjie

审核加盟优化

上级 d50bf18b
......@@ -31,6 +31,7 @@ public enum ResultEnum implements BaseErrorInfoInterface {
UNBIND_COMPANY_MEMBER_ERROR("5014", "不能解绑管理员"),
TRANFER_COMPANY_MEMBER_LEADER_ERROR("5015", "转交人不是管理员!"),
COMPANY_EXIST_ERROR("5015", "该企业已认证!"),
COOPERATION_CHECK_NOT_PASS_ERROR("5016", "审核失败,请联系管理人员!"),
//微信相关
PASSWORD_INCONSISTENT("5026", "新密码与确认密码不一致,请确认一致"),
......
......@@ -190,18 +190,18 @@ public class CooperationServiceImpl implements CooperationService {
bUserAccountVO.setAccountNo(bUserAccountVO.getPhoneNum() + "X");
ResultBody retryResultBody = backUserAccountService.insertBAccount(bUserAccountVO);
if (retryResultBody.getCode().equals(ResultEnum.SUCCESS.getResultCode())) {
throw new BizException("审核失败,请联系管理人员!");
throw new BizException(ResultEnum.COOPERATION_CHECK_NOT_PASS_ERROR);
}
}
throw new BizException("审核失败,请联系管理人员!");
throw new BizException(ResultEnum.COOPERATION_CHECK_NOT_PASS_ERROR);
}
log.info("apply cooperation tag, bUserAccountVO:{}", JSONObject.toJSONString(bUserAccountVO));
log.info("check apply cooperation tag, bUserAccountVO:{}", JSONObject.toJSONString(bUserAccountVO));
Map<String, String> param = new HashMap<String, String>();
param.put("accountNo", bUserAccountVO.getAccountNo());
param.put("password", bUserAccountVO.getPassWord());
SmsUtil.send("SMS_461986130", JSONObject.toJSONString(param), bUserAccountVO.getPhoneNum());
SmsUtil.sendPassCooperationApply(JSONObject.toJSONString(param), bUserAccountVO.getPhoneNum());
} else {
SmsUtil.send("SMS_462095054", null, account.getPhoneNum());
SmsUtil.sendNotPassCooperationApply(account.getPhoneNum());
cooperationDao.updateApplyTagStatus(id, 2);
}
return ResultBody.success();
......
......@@ -17,6 +17,23 @@ public class SmsUtil {
public static String CLOUD_JOIN_WEBSITE = "云享飞";
private static String ENDPOINT = "dysmsapi.aliyuncs.com";
/**
* 加盟审核通过
*/
private static String COOPERATION_TEMPLATE_CODE_0 = "SMS_461986130";
/**
* 加盟审核未通过
*/
private static String COOPERATION_TEMPLATE_CODE_1 = "SMS_462095054";
public static String sendPassCooperationApply(String param, String phone) {
return send(CLOUD_JOIN_WEBSITE, COOPERATION_TEMPLATE_CODE_0, param, phone);
}
public static String sendNotPassCooperationApply(String phone) {
return send(CLOUD_JOIN_WEBSITE, COOPERATION_TEMPLATE_CODE_1, null, phone);
}
public static String send(String TemplateCode, String param, String phone) {
return send(CLOUD_JOIN_WEBSITE, TemplateCode, param, phone);
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论