Commit 71df2407 authored by 唐峰's avatar 唐峰

极光登录账户余额不足告警

parent ef805b53
......@@ -28,6 +28,7 @@ public enum BizExceptionEnum {
ERROR_MATCHING_WECHAT_APP_ID("1017","微信appName和appId不匹配"),
ERROR_WECHAT_NOT_BIND_USERID("1018","微信未和用户绑定,登录失败"),
ERROR_WECHAT_BIND_ERROR_USERID("1019","微信绑定的用户不存在,登录失败"),
ERROR_JIGUANG_NO_MONEY("1020","极光登录账户余额不足"),
......
......@@ -79,7 +79,9 @@ public class SMSDirectJiLoginStrategy implements LoginStrategy {
jiGuangResponseParam = jiGuangRemoteService.h5LoginTokenVerify(jiGuangRequestParam);
}
if (jiGuangResponseParam == null || 8000 != jiGuangResponseParam.getCode()) {
if (jiGuangResponseParam != null && 9018 == jiGuangResponseParam.getCode()) {
throw new BizException(BizExceptionEnum.ERROR_JIGUANG_NO_MONEY);
}else if (jiGuangResponseParam == null || 8000 != jiGuangResponseParam.getCode()) {
throw new SilentBizException(BizExceptionEnum.ERROR_DIRECT_LOGIN);
} else {
smsLoginParam.setPhone(jiGuangResponseParam.getPhone());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment