public HttpResponseMessage modProduct([FromBody] PRODUCT p) { Result <PRODUCT> ru = new Result <PRODUCT>(); int result = 0; try { result = DB_Product.modeProduct(p); if (result == 1) { ru.code = "3010"; ru.success = "true"; ru.message = "修改成功!"; } else { ru.code = "3011"; ru.success = "false"; ru.message = "修改失败"; } } catch (Exception e) { ru.code = "3012"; ru.success = "false"; ru.message = e.Message; } ru.systemTime = Conn.GetTimeStamp(); ru.data = null; return(Conn.toJson(ru)); }