public async Task <IHttpActionResult> SetKeyValue(string token, string key, string value) { try { var s = new OptionService(); Option option = await s.GetByKey(key); int r = await s.SetKeyValue(key, value); return(Ok("添加成功" + r.ToString())); } catch (Exception e) { throw e; } }