Пример #1
0
        public DataTable ResetMyPassword([FromBody] User json)
        {
            DataTable dt = null;

            try
            {
                if ((json.userid > 0 || !string.IsNullOrWhiteSpace(json.account)) && !string.IsNullOrWhiteSpace(json.password))
                {
                    OperationData od    = new OperationData();
                    ValidInfo     valid = od.ResetMyPasswordByCP(json);
                    dt = this.GetTable(valid.valid, valid.errmsg);
                }
                else
                {
                    dt = GetTable("false", "参数错误");
                }
            }
            catch (Exception ex)
            {
                dt = GetTable("false", ex.Message);
                Log.WriteError(ex, "修改密码(ResetMyPassword)");
            }
            return(dt);
        }