public HttpResponseMessage modUser([FromBody] USER u) { Result <USER> ru = new Result <USER>(); int result = 0; try { result = DB_User.modUser(u); if (result == 1) { ru.code = "2030"; ru.success = "true"; ru.message = "修改成功!"; } else if (result == -1) { ru.code = "2033"; ru.success = "false"; ru.message = "此手机号已注册过"; } else { ru.code = "2031"; ru.success = "false"; ru.message = "修改失败"; } } catch (Exception e) { ru.code = "2032"; ru.success = "false"; ru.message = e.Message; } ru.systemTime = Conn.GetTimeStamp(); ru.data = null; return(Conn.toJson(ru)); }