public async Task <object> DevExcuteAsync() { try { ParseParameter(); var requisiteCmd = GetMethod(); if (requisiteCmd == null) { return(null); } switch (operate) { case OperateType.Insert: await requisiteCmd.InsertAsync(); return(null); case OperateType.Select: return(await requisiteCmd.DevSelectAsync()); case OperateType.SelectAll: return(await requisiteCmd.SelectAllAsync()); case OperateType.Update: await requisiteCmd.UpdateAsync(); return(null); case OperateType.Delete: await requisiteCmd.DeleteAsync(); return(null); default: return(null); } } catch (Exception e) { Log4netHelper.ErrorFormat("开发者Post Api返回错误,\r\n{0}", e.ToString()); return(new PostResult(e.ToString())); } }