public async Task <object> PutAsync(SysAdmins entity)
        {
            var json = new ResJson()
            {
                success = false
            };

            try
            {
                bool IsSave = string.IsNullOrEmpty(entity.GUID);

                if (IsSave)
                {
                    if (await sysAdminService.IsAnyAsync(p => p.Account == entity.Account || p.Mobile == entity.Mobile))
                    {
                        json.message = "账号或手机号码已存在";
                        return(json);
                    }

                    // Add 初始参数
                    entity.CreateUser        = AdminUser.User.Account;
                    entity.CreateDate        = DateTime.Now;
                    entity.GUID              = Guid.NewGuid().ToString();
                    entity.IsCanLogin        = true;
                    entity.Password          = new Common.CryptHelper.AESCrypt().Encrypt(entity.Mobile);
                    entity.SecondaryPassword = new Common.CryptHelper.AESCrypt().Encrypt("123456");
                }

                // Add、Update 默认参数
                if (string.IsNullOrEmpty(entity.UserName))
                {
                    entity.UserName = "******";
                }
                if (string.IsNullOrEmpty(entity.EN_Name))
                {
                    entity.EN_Name = Common.ToolHelper.ConvertHzToPz.Convert(entity.UserName);
                }
                if (string.IsNullOrEmpty(entity.EN_Nme_Simple))
                {
                    entity.EN_Nme_Simple = Common.ToolHelper.ConvertHzToPz.ConvertFirst(entity.UserName);
                }

                entity.UpdateUser = AdminUser.User.Account;
                entity.UpdateDate = DateTime.Now;
                entity.IsSuper    = false;

                //保存模块
                if (await sysAdminService.SaveOrUpdateAsync(entity, IsSave))
                {
                    json.message = "操作成功!";
                    json.success = true;
                }
                else
                {
                    json.message = "操作失败!";
                }
            }
            catch (Exception ex)
            {
                json.message = "网络超时.";
                throw ex;
            }

            return(json);
        }