Commit 38eeaef2 by 1391696987

修改判断

parent 03547d52
......@@ -193,8 +193,6 @@ public dynamic WuzhouLogin([FromBody] WuzhouLoginRequest request)
{
if (string.IsNullOrEmpty(request.EmpCode) ||
string.IsNullOrEmpty(request.Password) ||
string.IsNullOrEmpty(request.SocialCode) ||
string.IsNullOrEmpty(request.Mobile) ||
string.IsNullOrEmpty(request.UserId))
return new ApiResponse(ResponseType.Fail, "请补全数据!");
......
......@@ -34,8 +34,8 @@ public class WuzhouLoginRequest
public string UserId { get; set; }
public string EmpCode { get; set; }
public string Password { get; set; }
public string SocialCode { get; set; }
public string Mobile { get; set; }
public string SocialCode { get; set; } = "";
public string Mobile { get; set; } = "";
}
public class LoginRequestValidator : AbstractValidator<LoginRequest>
{
......
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