...
|
...
|
@@ -20,10 +20,6 @@ func MiniUserInfoHandler(svcCtx *svc.ServiceContext) http.HandlerFunc { |
|
|
|
|
|
l := user.NewMiniUserInfoLogic(r.Context(), svcCtx)
|
|
|
resp, err := l.MiniUserInfo(&req)
|
|
|
if len(resp.Accounts) == 0 { // 无账号时登出
|
|
|
httpx.WriteJson(w, http.StatusUnauthorized, nil)
|
|
|
return
|
|
|
}
|
|
|
result.HttpResult(r, w, resp, err)
|
|
|
}
|
|
|
} |
...
|
...
|
|