public async Task UpdateSendEmailSettings(string id) { // 根据id判断属于发件还是收件 var sendbox = LiteDb.FirstOrDefault <SendBox>(s => s._id == id); if (sendbox != null) { if (sendbox.settings == null) { sendbox.settings = new SendBoxSetting(); } sendbox.settings.UpdateObject(Body as JObject); LiteDb.Update(sendbox); await ResponseSuccessAsync(sendbox); return; } await ResponseErrorAsync($"未找到发件箱:{id}"); }