Depression not only threatens the health and quality of life of patients but also brings a huge mental and economic burden to the patients’ families. This paper mainly studies the mechanism of dopaminergic neurotransmission in different doses of morphine addiction and stress-induced depression. In the experiment, 40 male SD rats were selected. The experiment established a rat model of chronic stress depression. The rats used in this model are all raised in a single cage, and there will be various stimuli every day for 21 days, but high-intensity continuous stimuli must be avoided, and the same stimuli will not appear continuously. The experiment established a depression animal model through chronic unpredictable mild stress (CUMS), combined with the conditioned position preference (CPP) model of morphine addiction to detect the establishment of CPP in such animals, so as to explore certain stress stimuli or depression, the influence on morphine addiction, and the relationship between them. The second or third branches of pyramidal neurons were selected to analyze the PL and CA3 regions. When analyzing the density of dendrites, each animal selected at least 8 dendrites in order to count the number of dendrites and selected a length of 20 μm on each branch to record the number of dendrites. All measured values are expressed as average ± standard deviation and analyzed by SPSS17.0 statistical software, and Levene test is used in the scattered consistency test. The average NIV of PEN before injection was 11.92 ± 2.90 Hz, and the average latency was 0.16 ± 0.03 s. The results indicate that CUMS may reduce the conditioned learning and memory ability by damaging the learning loop, rather than affecting the reward loop to weaken the establishment of morphine-dependent CPP.