I would like to refer you to page $310$ of Ireland-Rosen: A Classical Intro to Modern Number Theory.
Firstly, to construct the Hecke character, it is enough to specify $\chi(P)$ for prime ideals $P$ in $\mathbb{Z}[i]$. If $P$ divides $2D$, then define $\chi(P)=0$.
Suppose $P\nmid 2D$,
- if $NP=p$, then $p\equiv1\mod4$, and $P=(\pi)$, where $\pi\equiv1\mod2+2i$, and we define $$\chi(P)=\overline{\left(\frac{D}{\pi}\right)}_4\pi.$$
- if $NP=p^2$, then $p\equiv3\mod4$, and $P=(p)$ and we define $$\chi(P)=-p.$$
They then go now to prove a lemma which states that if $p\equiv3\mod4$, then $\left(\frac{D}{p}\right)_4=1$.
After which, they say that they can define $\chi(P)$ uniformly for prime ideals $P$ not dividing $2D$.
My understanding of the text is that for all primes $P$ not dividing $2D$, we can define $$\chi(P)=\overline{\left(\frac{D}{\pi}\right)}_4\pi.$$ But for $p\equiv3\mod4$, we have $\chi(P)=\overline{\left(\frac{D}{p}\right)}_4p=\overline{1}p=p\neq-p$.
Is my understanding of "define $\chi(P)$ uniformly" wrong?
Thanks for the help in advanced!