Inclusion Criteria:  The local advanced stage confirmed by histopathology is unresectable, recurrent or metastatic Adenocarcinoma of stomach and gastroesophageal junction. After receiving first-line treatment, the disease progressed or intolerable adverse reactions occurred. At least one measurable lesion or evaluable lesion (according to RECIST 1.1 standard); Patients agreed to provide blood samples and previously stored tumor tissue samples for tumor microenvironment detection. Age ≥18 years old and ≤75 years old. The ECOG score is 0 or 1. The estimated survival time is ≥3 months. Within 7 days before entering the group, the laboratory test value met the chemotherapy standard. Within 28 days before enrollment, women of childbearing age must confirm that the serum pregnancy test is negative and agree to adopt effective contraceptive measures during the study drug use and within 6 months after the last administration. Patients voluntarily joined the study, signed informed consent, and were able to comply with the visit and related procedures stipulated in the plan.  Exclusion Criteria:  Participate in other intervention clinical studies at the same time (unless participating in observation studies or being in the follow-up stage of intervention studies), and have received second-line treatment. have received antibody therapy of PD-1, PD-L1, PD-L2, CTLA4, CD137 or any other antibody or drug therapy with t cell co-stimulation or immune checkpoint pathway as specific target. It is known to be allergic to any monoclonal antibody or adjuvant. Received Chinese patent medicines with anti-tumor indications or drugs with immunoregulatory effects (thymosin, interferon, interleukin, etc.) within 2 weeks before the first administration. Having undergone major surgery within 4 weeks before the first administration or expecting to undergo surgery during the study treatment. Receive live attenuated vaccine within 4 weeks before the first administration or during the planned study treatment. Received transplantation of solid organs or blood system. Active, known or suspected autoimmune diseases or related medical history in the past 2 years (vitiligo, psoriasis, alopecia or Graves' disease that does not require systematic treatment in the past 2 years, hypothyroidism that only requires thyroid hormone replacement therapy, and type I diabetes patients who only need insulin replacement therapy can enter Group). Immunosuppressive drugs have been used within 4 weeks before the first administration, excluding local glucocorticoid by nasal spray, inhalation or other routes or systemic glucocorticoid with physiological dose (i.e., prednisone or other glucocorticoid with equivalent dose not exceeding 10mg/ day), or hormone used due to allergy. Known history of primary immunodeficiency disease. Known history of active tuberculosis. 12 known to have a history of human immunodeficiency virus (HIV) infection (i.e., HIV antibody positive).  13. after regular antihypertensive treatment, the blood pressure still cannot fall to the normal range (systolic blood pressure > >140mmHg, diastolic blood pressure > >90mmHg).  14. ≥II grade ii coronary heart disease and arrhythmia (including QTc interval prolongation > >450ms for men and > >470ms for women).  15. Symptomatic congestive heart failure (new york Heart Association Grade II-IV) or symptomatic or poorly controlled arrhythmia.  16. before the first administration, there was toxicity caused by previous anti-tumor treatment that did not recover to grade 0 or grade 1 of the national cancer institute general adverse event terminology version 4.03 (NCI ctcae version 4.03) (excluding alopecia, fatigue and asymptomatic laboratory abnormalities).  17. abnormal coagulation function (INR > 1.5 uln, aptt > 1.5 uln), with bleeding tendency.  18. It is known that symptomatic central nervous system metastasis exists. 19. Diagnosed as other malignant tumors within 5 years before the first administration, excluding basal cell carcinoma of skin, squamous cell carcinoma of skin and carcinoma in situ after radical resection.  20. Active infections requiring treatment or systemic anti-infective drugs used within 7 days before the first administration.  21. acute or chronic active hepatitis b: HBV viral load ≥500 copies /ml 22. Any arterial thrombosis, embolism or ischemia, such as myocardial infarction, unstable angina pectoris, cerebrovascular accident or transient ischemic attack, occurred within 6 months before the study.  23. It is known that there are mental diseases or drug abuse situations that may affect the compliance with the test requirements.  24. Acute or chronic active hepatitis C: HCV antibody is positive. 25. Pregnant or lactating women. 26. There are medical histories, diseases, treatments or abnormal laboratory results that may interfere with the test results and prevent the subjects from participating in the study, or the researchers think that participating in the study is not in the best interests of the subjects.