| | |
| | | { |
| | | pwdOld = Md5Tools.CalcMd5(pwdOld); |
| | | pwdNew = Md5Tools.CalcMd5(pwdNew); |
| | | pwdNewTwo = Md5Tools.CalcMd5(pwdNewTwo); |
| | | //pwdNewTwo = Md5Tools.CalcMd5(pwdNewTwo); |
| | | //获取当前操作用户id |
| | | SysUserInfor user = await _userInforServer.GetUserInfoById(_userManager.UserId); |
| | | if (user == null) |
| | |
| | | if (user.PassWord != pwdOld) |
| | | throw Oops.Bah("原密码不正确"); |
| | | //修改密码 |
| | | int i = await _userInforServer.UptUserPassWord(pwdNew, _userManager.UserId); |
| | | int i = await _userInforServer.UptUserPassWord(pwdNew, pwdNewTwo, _userManager.UserId); |
| | | if (i <= 0) |
| | | throw Oops.Bah("修改密码失败"); |
| | | } |
| | |
| | | /// </summary> |
| | | /// <returns></returns> |
| | | [HttpGet] |
| | | [ServiceFilter(typeof(ApiResponseActionFilter))] |
| | | public async Task<List<FunctionMenuDto>> GetRBACLists(int id) |
| | | { |
| | | return await _rBACServer.GetMenuByroleIdNew(id); |
| | |
| | | public async Task DelLogisticsInfo(IdVm model) |
| | | { |
| | | await _logisticsSvc.DelLogisticsInfo(model.Id, _userManager.UserId); |
| | | SysLogisticsInfo logisit = await _logisticsSvc.GetLogisticsInfo(model.Id); |
| | | SysLogisticsInfo logisit = await _logisticsSvc.GetLogisticsDelInfo(model.Id); |
| | | await _operation.InsertOperation("基础信息", "物流管理", logisit.CarrierName, "删除", "删除物流信息 公司名称:" + logisit.CarrierName, _userManager.UserId); |
| | | } |
| | | /// <summary> |
| | |
| | | /// </summary> |
| | | /// <returns></returns> |
| | | [HttpPost] |
| | | [ServiceFilter(typeof(ApiResponseActionFilter))] |
| | | public async Task<SqlSugarPagedList> GetSysOperationList(GetOperationVm model) |
| | | { |
| | | return await _operation.GetSysOperationList(model); |
| | |
| | | /// <param name="dicName">字典名称</param> |
| | | /// <returns></returns> |
| | | [HttpGet] |
| | | [ServiceFilter(typeof(ApiResponseActionFilter))] |
| | | public async Task<List<SysDictionary>> GetDicTypeList(string dicName) |
| | | { |
| | | return await _operation.GetDicTypeList(dicName); |