|
|
@ -391,26 +391,31 @@ namespace _24Hour.Controllers |
|
|
|
{ |
|
|
|
{ |
|
|
|
if (date.identity == "律师" && date.audit == 1) |
|
|
|
if (date.identity == "律师" && date.audit == 1) |
|
|
|
{ |
|
|
|
{ |
|
|
|
|
|
|
|
|
|
|
|
ret.IsSucceed = false; |
|
|
|
ret.IsSucceed = false; |
|
|
|
ret.Message = $"用户信息审核未通过,原因:{date.describe},请重新注册!"; |
|
|
|
ret.Message = $"用户信息审核未通过,原因:{date.describe},请重新注册!"; |
|
|
|
|
|
|
|
ret.result = "用户信息审核未通过"; |
|
|
|
return ret; |
|
|
|
return ret; |
|
|
|
} |
|
|
|
} |
|
|
|
else if (date.identity == "律师" && date.audit == 2) |
|
|
|
else if (date.identity == "律师" && date.audit == 2) |
|
|
|
{ |
|
|
|
{ |
|
|
|
ret.IsSucceed = false; |
|
|
|
ret.IsSucceed = false; |
|
|
|
ret.Message = "用户信息审核中!"; |
|
|
|
ret.Message = "用户信息审核中!"; |
|
|
|
|
|
|
|
ret.result = "用户信息审核中"; |
|
|
|
return ret; |
|
|
|
return ret; |
|
|
|
} |
|
|
|
} |
|
|
|
if (date.isdeactivate == 1) |
|
|
|
if (date.isdeactivate == 1) |
|
|
|
{ |
|
|
|
{ |
|
|
|
ret.IsSucceed = false; |
|
|
|
ret.IsSucceed = false; |
|
|
|
ret.Message = "该账号已被禁用,请联系管理员!"; |
|
|
|
ret.Message = "该账号已被禁用,请联系管理员!"; |
|
|
|
|
|
|
|
ret.result = "该账号已被禁用"; |
|
|
|
return ret; |
|
|
|
return ret; |
|
|
|
} |
|
|
|
} |
|
|
|
if (date.usertype == 0 && date.becurrent == 1) |
|
|
|
if (date.usertype == 0 && date.becurrent == 1) |
|
|
|
{ |
|
|
|
{ |
|
|
|
ret.IsSucceed = false; |
|
|
|
ret.IsSucceed = false; |
|
|
|
ret.Message = $"账号未授权无法登录,请联系管理员!"; |
|
|
|
ret.Message = $"账号未授权无法登录,请联系管理员!"; |
|
|
|
|
|
|
|
ret.result = "账号未授权无法登录"; |
|
|
|
return ret; |
|
|
|
return ret; |
|
|
|
} |
|
|
|
} |
|
|
|
#region jwt生成token |
|
|
|
#region jwt生成token |
|
|
@ -459,6 +464,7 @@ namespace _24Hour.Controllers |
|
|
|
{ |
|
|
|
{ |
|
|
|
ret.IsSucceed = false; |
|
|
|
ret.IsSucceed = false; |
|
|
|
ret.Message = "微信未授权,请先注册账号!"; |
|
|
|
ret.Message = "微信未授权,请先注册账号!"; |
|
|
|
|
|
|
|
ret.result = "微信未授权"; |
|
|
|
} |
|
|
|
} |
|
|
|
return ret; |
|
|
|
return ret; |
|
|
|
} |
|
|
|
} |
|
|
|