|
@@ -574,26 +574,20 @@ namespace MySystem.Areas.Admin.Controllers
|
|
|
// return Json(new AppResultJson() { Status = "-1", Info = "注销失败,未满足条件:名下无未绑定机具、机具券,无未申请的循环机。如有疑问,请联系客服" });
|
|
// return Json(new AppResultJson() { Status = "-1", Info = "注销失败,未满足条件:名下无未绑定机具、机具券,无未申请的循环机。如有疑问,请联系客服" });
|
|
|
return "注销失败,未满足条件:名下无未绑定机具、机具券,无未申请的循环机。如有疑问,请联系客服";
|
|
return "注销失败,未满足条件:名下无未绑定机具、机具券,无未申请的循环机。如有疑问,请联系客服";
|
|
|
}
|
|
}
|
|
|
- UserForMobile forMobile = db.UserForMobile.FirstOrDefault(m => m.Mobile == user.Mobile);
|
|
|
|
|
- if (forMobile != null)
|
|
|
|
|
- {
|
|
|
|
|
- db.Remove(forMobile);
|
|
|
|
|
- }
|
|
|
|
|
- user.Status = -1;
|
|
|
|
|
- user.Mobile += "d";
|
|
|
|
|
- user.CertId += "d";
|
|
|
|
|
}
|
|
}
|
|
|
- else
|
|
|
|
|
|
|
+ UserForMobile forMobile = db.UserForMobile.FirstOrDefault(m => m.Mobile == user.Mobile);
|
|
|
|
|
+ if (forMobile != null)
|
|
|
{
|
|
{
|
|
|
- UserForMobile forMobile = db.UserForMobile.FirstOrDefault(m => m.Mobile == user.Mobile);
|
|
|
|
|
- if (forMobile != null)
|
|
|
|
|
- {
|
|
|
|
|
- db.Remove(forMobile);
|
|
|
|
|
- }
|
|
|
|
|
- user.Status = -1;
|
|
|
|
|
- user.Mobile += "d";
|
|
|
|
|
- user.CertId += "d";
|
|
|
|
|
|
|
+ db.UserForMobile.Remove(forMobile);
|
|
|
|
|
+ }
|
|
|
|
|
+ UserForMakerCode forCode = db.UserForMakerCode.FirstOrDefault(m => m.MakerCode == user.MakerCode);
|
|
|
|
|
+ if (forCode != null)
|
|
|
|
|
+ {
|
|
|
|
|
+ db.UserForMakerCode.Remove(forCode);
|
|
|
}
|
|
}
|
|
|
|
|
+ user.Status = -1;
|
|
|
|
|
+ user.Mobile += "d";
|
|
|
|
|
+ user.CertId += "d";
|
|
|
function.WriteLog(user.Id + "于" + DateTime.Now.ToString() + "注销账号", "创客注销日志");
|
|
function.WriteLog(user.Id + "于" + DateTime.Now.ToString() + "注销账号", "创客注销日志");
|
|
|
// TODO: 每月扫描一次注销的创客,把注销创客伞下创客全部挂到注销创客的上级
|
|
// TODO: 每月扫描一次注销的创客,把注销创客伞下创客全部挂到注销创客的上级
|
|
|
// TODO: 清除token,token登录返回
|
|
// TODO: 清除token,token登录返回
|