public HttpResponseMessage insertProduct([FromBody] PRODUCT p) { Result <PRODUCT> ru = new Result <PRODUCT>(); int result = 0; try { result = DB_Product.insertProduct(p); if (result == 1) { ru.code = "3000"; ru.success = "true"; ru.message = "插入成功!"; } else { ru.code = "3001"; ru.success = "false"; ru.message = "插入失败"; } } catch (Exception e) { ru.code = "3002"; ru.success = "false"; ru.message = e.Message; } ru.systemTime = Conn.GetTimeStamp(); ru.data = null; return(Conn.toJson(ru)); }