Quantum Magnetometer with Dual-Coupling Optomechanics