Hackers almost got away with a $350,000 wire transfer after they gained access to the city treasurer’s work computer.