Inclusion Criteria:  Age ≥18; Locally advanced or recurrent/metastatic gastric or gastroesophageal junction adenocarcinoma confirmed by histopathological examination; Standard treatment failure of no less than two lines of systematic treatment (treatment failure is defined as intolerance of toxic and side effects, disease progression during treatment or recurrence after treatment); With one or more measurable lesions, the longest diameter measured by spiral CT scan should be at least 10 mm, and the longest diameter measured by conventional CT scan should be at least 20 mm (RECIST standard, version 1.1); ECOG score was 0-2; Life expectancy ≥12 weeks; The patient has recovered from damage caused by other anti-tumor therapy, received cytotoxic drugs, radiotherapy or surgery for ≥4 weeks, and the wound has completely healed; Bone marrow capacity and liver and kidney function were sufficiently reserved 7 days before screening: absolute neutrophil (ANC) count ≥1.5x109 /L; Hemoglobin ≥ 8.0g/ dL; Platelet count ≥80 x109 /L; Total bilirubin < 1.5 times upper normal limit (ULN); ALT and AST< 2.5x ULN (with liver metastasis <5x ULN); Serum creatinine ≤1 x ULN, the clearance rate of endogenous creatinine >50ml/min; Women of childbearing age should take effective contraceptive measures; Subjects voluntarily joined the study and signed informed consent with good compliance and follow-up.  Exclusion Criteria:  A history of other malignant tumors within 5 years, except cured cervical carcinoma in situ or basal cell carcinoma of the skin; Patients with hypertension that could not be controlled by antihypertensive medication (systolic blood pressure >140mmHg, diastolic blood pressure >90mmHg), coronary heart disease of grade I or above, arrhythmia of grade I or above (including prolonged QTc interval > 450ms in males and > 470 ms in females) and cardiac dysfunction of grade I or above; Symptomatic brain or meningeal metastases (unless the patient was treated for >6 months, imaging results were negative within 4 weeks prior to study entry, and tumor-related clinical symptoms were stable at study entry); with a history of uncontrolled epileptic seizures, central nervous system dysfunction, or mental disorders; Uncontrolled pleural or abdominal effusion; Undergoing kidney dialysis; severe or uncontrolled infection; pregnant or lactating women who are fertile but have not taken adequate contraceptive measures; Multiple factors affecting oral medication (inability to swallow, chronic diarrhea and intestinal obstruction); Abnormal coagulation function (PT>16s, APTT>43s, TT>21s, Fbg< 2G /L), bleeding tendency or receiving thrombolytic or anticoagulant treatment; patients with gastrointestinal bleeding risk should not be enrolled, including the following conditions :(1) active peptic ulcer lesions and fecal occult blood (++); (2) patients with history of black stools and hematemesis within 3 months; Prior exposure to any anti-PD-1 or anti-PD-L1, PD-L2, CD137, CTLA-4 antibody therapy, or any other antibody or drug that specifically targets T-cell costimulation or immune checkpoint pathways. Participated in clinical trials of other drugs within four weeks Urine routine examination indicated urine protein > 2+ Received systemic systemic therapy with anti-tumor indications of Chinese herbal medicine or immunomodulatory drugs (including thymosin, interferon, interleukin, etc.) within 2 weeks before the first administration; Use of immunosuppressive agents within 4 weeks prior to the first dose of study therapy, excluding nasal, inhaled, or other topical or physiological doses of systemic glucocorticoids (i.e., no more than 10 mg/ d of prednisone or equivalent doses of other glucocorticoids), or hormone use for the prevention of contrast agent allergy. Residual liver volume is less than 50% of the total liver volume.