|
@@ -63,7 +63,11 @@ func (h *SendCodeHandler) run() {
|
|
|
email, err := service.SendCode.GetEmailByPhone(h.ctx, data.Phone)
|
|
|
if err != nil {
|
|
|
logrus.Errorf("[SendeCodeHandler] call SetSession err:%+v\n", err)
|
|
|
- util.HandlerPackErrorResp(h.resp, consts.ErrorInternal, "")
|
|
|
+ if email != "" {
|
|
|
+ util.HandlerPackErrorResp(h.resp, consts.ErrorInternal, "账号不存在")
|
|
|
+ } else {
|
|
|
+ util.HandlerPackErrorResp(h.resp, consts.ErrorInternal, "")
|
|
|
+ }
|
|
|
log.Info("SendeCode fail,req:%+v", h.req)
|
|
|
return
|
|
|
}
|