{"id":57568,"date":"2025-08-15T15:29:48","date_gmt":"2025-08-15T07:29:48","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/57568.html"},"modified":"2025-08-15T15:29:48","modified_gmt":"2025-08-15T07:29:48","slug":"%e5%af%b9%e8%b1%a1%e7%9a%84%e5%bc%95%e7%94%a8","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/57568.html","title":{"rendered":"\u5bf9\u8c61\u7684\u5f15\u7528"},"content":{"rendered":"<p>\u5206\u4eab\u4e2a\u5f88\u6709\u610f\u601d\u7684\u4e1c\u897f<\/p>\n<p>\u4eca\u5929\u5728\u770b\u65b0\u9879\u76ee\u7684\u4ee3\u7801\u7684\u65f6\u5019&#xff0c;\u53d1\u73b0\u4e00\u4e2a\u5f88\u795e\u5947\u7684\u73b0\u8c61\u3002<\/p>\n<p>\u5f53\u63a5\u53e3\u8fdb\u6765\u7684\u65f6\u5019&#xff0c;\u88ab\u62e6\u622a\u5668\u62e6\u622a\u4e86&#xff0c;\u6b64\u65f6\u62e6\u622a\u5668\u7ed9\u5f53\u524d\u6784\u9020\u5668\u4e2dprivate readonly userJwtPayload: UserJwtPayload \u8fdb\u884c\u4e86\u00a0Object.assign(this.userJwtPayload, payload);\u5c31\u662f\u7ed9\u5b83\u8fdb\u884c\u4e86\u8d4b\u503c\u3002\u4e4b\u540e\u56de\u5230\u63a7\u5236\u5668&#xff0c;\u5728\u6784\u9020\u5668\u4e2d\u4e5f\u6709private readonly userJwtPayload: UserJwtPayload&#xff0c;\u6b64\u65f6&#xff0c;\u76f4\u63a5\u8f93\u51fauserJwtPayload\u5c31\u662f\u6709\u503c\u7684\u4e86\u3002<\/p>\n<p>\u8fd9\u662f\u4e3a\u4ec0\u4e48\u5462&#xff1f;<\/p>\n<p>\u56e0\u4e3a\u8fd9\u4e24\u4e2a\u7c7b\u5f97\u5230\u7684 userJwtPayload \u5e76\u4e0d\u662f\u4e24\u4e2a\u72ec\u7acb\u7684\u5bf9\u8c61&#xff0c;\u800c\u662f\u6307\u5411\u5185\u5b58\u4e2d\u540c\u4e00\u4e2a\u5bf9\u8c61\u7684\u201c\u94a5\u5319\u201d\u6216\u201c\u5730\u5740\u201d&#xff08;\u4e13\u4e1a\u672f\u8bed\u53eb\u201c\u5f15\u7528\u201d&#xff09;\u3002<\/p>\n<p>\u6240\u4ee5&#xff0c;\u4e0d\u662f\u201c\u4e00\u4e2a\u7c7b\u8d4b\u503c&#xff0c;\u53e6\u4e00\u4e2a\u7c7b\u4e5f\u81ea\u52a8\u88ab\u8d4b\u503c\u201d&#xff0c;\u800c\u662f\u201c\u4e00\u4e2a\u7c7b\u901a\u8fc7\u94a5\u5319\u8fdb\u5165\u623f\u95f4\u4fee\u6539\u4e86\u4e1c\u897f&#xff0c;\u53e6\u4e00\u4e2a\u7c7b\u665a\u70b9\u7528\u540c\u4e00\u628a\u94a5\u5319\u8fdb\u5165\u540c\u4e00\u4e2a\u623f\u95f4&#xff0c;\u81ea\u7136\u80fd\u770b\u5230\u88ab\u4fee\u6539\u8fc7\u7684\u4e1c\u897f\u201d**\u3002<\/p>\n<p>\u8ba9\u6211\u4eec\u7528\u4e00\u4e2a\u66f4\u8be6\u7ec6\u7684\u6bd4\u55bb\u548c\u6280\u672f\u89e3\u91ca\u6765\u62c6\u89e3\u5b83\u3002<\/p>\n<h2>1. \u94a5\u5319\u7684\u6bd4\u55bb&#xff1a;\u5bf9\u8c61 vs \u5bf9\u8c61\u7684\u5f15\u7528<\/h2>\n<p>\u60f3\u8c61\u4e00\u4e0b&#xff0c;UserJwtPayload \u8fd9\u4e2a\u5bf9\u8c61\u5b9e\u4f8b\u662f\u4e00\u4e2a\u623f\u5b50 &#x1f3e0;\u3002<\/p>\n<ul>\n<li>\n<p>NestJS\u7684\u4f9d\u8d56\u6ce8\u5165\u5bb9\u5668&#xff1a;\u662f\u8fd9\u680b\u623f\u5b50\u7684\u7269\u4e1a\u7ba1\u7406\u5458 &#x1f468;\u200d&#x1f4bc;\u3002<\/p>\n<\/li>\n<li>\n<p>JwtInterceptor&#xff1a;\u662f\u623f\u5b50\u7684\u4fdd\u5b89 &#x1f46e;\u3002<\/p>\n<\/li>\n<li>\n<p>\u4f60\u7684\u63a7\u5236\u5668 (Controller)&#xff1a;\u662f\u623f\u5b50\u7684\u4e3b\u4eba &#x1f9d1;\u200d&#x1f4bb;\u3002<\/p>\n<\/li>\n<\/ul>\n<p>\u73b0\u5728&#xff0c;\u4e00\u4e2a\u8bf7\u6c42\u6765\u4e86&#xff0c;\u6574\u4e2a\u6d41\u7a0b\u662f\u8fd9\u6837\u7684&#xff1a;<\/p>\n<li>\n<p>\u7269\u4e1a\u7ba1\u7406\u5458&#xff08;DI\u5bb9\u5668&#xff09; \u4e3a\u8fd9\u6b21\u8bf7\u6c42\u4e13\u95e8\u51c6\u5907\u4e86\u4e00\u95f4\u5168\u65b0\u7684\u3001\u7a7a\u8361\u8361\u7684\u623f\u5b50&#xff08;\u521b\u5efa\u4e86\u4e00\u4e2a UserJwtPayload \u5bf9\u8c61\u5b9e\u4f8b&#xff09;\u3002<\/p>\n<\/li>\n<li>\n<p>\u7269\u4e1a\u7ba1\u7406\u5458\u590d\u5236\u4e86\u4e24\u628a\u6307\u5411\u8fd9\u95f4\u623f\u5b50\u7684\u94a5\u5319 &#x1f511;\u3002<\/p>\n<\/li>\n<li>\n<p>\u4ed6\u5148\u628a\u4e00\u628a\u94a5\u5319 &#x1f511; \u4ea4\u7ed9\u4e86\u4fdd\u5b89&#xff08;JwtInterceptor&#xff09;\u3002\u4fdd\u5b89\u5728\u4ed6\u7684\u6784\u9020\u51fd\u6570\u91cc\u62ff\u5230\u4e86\u8fd9\u628a\u94a5\u5319&#xff0c;\u5e76\u628a\u5b83\u5b58\u653e\u5728\u53e3\u888b\u91cc&#xff08;this.userJwtPayload&#xff09;\u3002<\/p>\n<\/li>\n<li>\n<p>\u4fdd\u5b89\u7528\u94a5\u5319\u5f00\u95e8\u8fdb\u5165\u623f\u5b50&#xff0c;\u68c0\u67e5\u4e86\u8bbf\u5ba2\u7684\u8eab\u4efd&#xff08;\u89e3\u6790JWT&#xff09;&#xff0c;\u7136\u540e\u5728\u623f\u5b50\u7684\u684c\u5b50\u4e0a\u653e\u4e0a\u4e86\u4e00\u4efd\u8bbf\u5ba2\u8d44\u6599\u6863\u6848&#xff08;Object.assign(this.userJwtPayload, payload)&#xff09;\u3002\u7136\u540e\u4fdd\u5b89\u5c31\u9501\u95e8\u51fa\u6765\u4e86\u3002<\/p>\n<\/li>\n<li>\n<p>\u63a5\u7740&#xff0c;\u7269\u4e1a\u7ba1\u7406\u5458\u628a\u53e6\u4e00\u628a\u4e00\u6a21\u4e00\u6837\u7684\u94a5\u5319 &#x1f511; \u4ea4\u7ed9\u4e86\u4e3b\u4eba&#xff08;\u4f60\u7684\u63a7\u5236\u5668&#xff09;\u3002\u4e3b\u4eba\u5728\u4ed6\u7684\u6784\u9020\u51fd\u6570\u91cc\u4e5f\u62ff\u5230\u4e86\u8fd9\u628a\u94a5\u5319&#xff0c;\u5e76\u628a\u5b83\u4e5f\u653e\u5728\u53e3\u888b\u91cc&#xff08;this.userJwtPayload&#xff09;\u3002<\/p>\n<\/li>\n<li>\n<p>\u5f53\u4e3b\u4eba\u9700\u8981\u7528\u6237\u4fe1\u606f\u65f6&#xff0c;\u4ed6\u7528\u81ea\u5df1\u7684\u94a5\u5319\u5f00\u95e8&#xff0c;\u8fdb\u5165\u7684\u8fd8\u662f\u4e4b\u524d\u90a3\u95f4\u623f\u5b50\u3002\u4ed6\u4e00\u8fdb\u95e8&#xff0c;\u5c31\u770b\u5230\u4e86\u684c\u5b50\u4e0a\u90a3\u4efd\u88ab\u4fdd\u5b89\u653e\u4e0a\u53bb\u7684\u8bbf\u5ba2\u8d44\u6599\u6863\u6848\u3002<\/p>\n<\/li>\n<p>\u7ed3\u8bba&#xff1a; \u4fdd\u5b89\u548c\u4e3b\u4eba\u5e76\u6ca1\u6709\u4e92\u76f8\u901a\u4fe1\u3002\u4ed6\u4eec\u53ea\u662f\u901a\u8fc7\u7269\u4e1a\u7ba1\u7406\u5458&#xff0c;\u62ff\u5230\u4e86\u901a\u5f80\u540c\u4e00\u4e2a\u5730\u65b9\u7684\u94a5\u5319\u3002\u56e0\u4e3a\u4ed6\u4eec\u64cd\u4f5c\u7684\u662f\u540c\u4e00\u4e2a\u623f\u5b50&#xff0c;\u6240\u4ee5\u4fdd\u5b89\u505a\u7684\u6539\u52a8&#xff0c;\u4e3b\u4eba\u81ea\u7136\u80fd\u770b\u5230\u3002<\/p>\n<h2>2. \u6280\u672f\u5c42\u9762\u7684\u89e3\u91ca&#xff1a;\u503c vs \u5f15\u7528<\/h2>\n<p>\u5728\u5927\u591a\u6570\u7f16\u7a0b\u8bed\u8a00\u4e2d&#xff0c;\u53d8\u91cf\u53ef\u4ee5\u5b58\u50a8\u4e24\u79cd\u4e1c\u897f&#xff1a;<\/p>\n<ul>\n<li>\n<p>\u503c\u7c7b\u578b (Value Types)&#xff1a;\u50cf\u6570\u5b57\u3001\u5e03\u5c14\u503c\u3002\u5f53\u4f60\u628a\u4e00\u4e2a\u6570\u5b57\u53d8\u91cf\u8d4b\u7ed9\u53e6\u4e00\u4e2a\u53d8\u91cf\u65f6&#xff0c;\u4f60\u662f\u590d\u5236\u4e86\u8fd9\u4e2a\u503c\u3002<\/p>\n<p>let a &#061; 10;<br \/>\nlet b &#061; a; \/\/ b \u5f97\u5230\u7684\u662f 10 \u8fd9\u4e2a\u503c\u7684\u526f\u672c<br \/>\nb &#061; 20;    \/\/ \u4fee\u6539 b \u4e0d\u4f1a\u5f71\u54cd a<br \/>\nconsole.log(a); \/\/ \u8f93\u51fa 10<\/p>\n<\/li>\n<li>\n<p>\u5f15\u7528\u7c7b\u578b (Reference Types)&#xff1a;\u50cf\u5bf9\u8c61\u3001\u6570\u7ec4\u3002\u5f53\u4f60\u628a\u4e00\u4e2a\u5bf9\u8c61\u53d8\u91cf\u8d4b\u7ed9\u53e6\u4e00\u4e2a\u53d8\u91cf\u65f6&#xff0c;\u4f60\u590d\u5236\u7684\u662f\u6307\u5411\u8be5\u5bf9\u8c61\u7684\u5185\u5b58\u5730\u5740&#xff08;\u5f15\u7528&#xff09;&#xff0c;\u800c\u4e0d\u662f\u5bf9\u8c61\u672c\u8eab\u3002<\/p>\n<p>let objA &#061; { name: &#039;Alice&#039; };<br \/>\nlet objB &#061; objA; \/\/ objB \u5f97\u5230\u7684\u662f\u6307\u5411 { name: &#039;Alice&#039; } \u8fd9\u4e2a\u5bf9\u8c61\u7684\u5185\u5b58\u5730\u5740\u7684\u526f\u672c<\/p>\n<p>\/\/ \u901a\u8fc7 objB \u4fee\u6539\u5bf9\u8c61<br \/>\nobjB.name &#061; &#039;Bob&#039;; <\/p>\n<p>\/\/ \u56e0\u4e3a objA \u548c objB \u6307\u5411\u540c\u4e00\u4e2a\u5bf9\u8c61&#xff0c;\u6240\u4ee5\u901a\u8fc7 objA \u4e5f\u80fd\u770b\u5230\u4fee\u6539<br \/>\nconsole.log(objA.name); \/\/ \u8f93\u51fa &#039;Bob&#039; <\/p>\n<\/li>\n<\/ul>\n<p>\u6211\u7684 JwtInterceptor \u548c Controller \u5c31\u662f\u4e0a\u9762 objA \u548c objB \u7684\u60c5\u51b5\u3002<\/p>\n<li>\n<p>NestJS DI \u5bb9\u5668 new UserJwtPayload()&#xff0c;\u5728\u5185\u5b58\u4e2d\u521b\u5efa\u4e86\u4e00\u4e2a\u5bf9\u8c61\u3002<\/p>\n<\/li>\n<li>\n<p>\u5b83\u628a\u8fd9\u4e2a\u5bf9\u8c61\u7684\u5f15\u7528&#xff08;\u5185\u5b58\u5730\u5740&#xff09;\u4f20\u7ed9\u4e86 JwtInterceptor \u7684\u6784\u9020\u51fd\u6570\u3002JwtInterceptor \u5185\u90e8\u7684 this.userJwtPayload \u4fdd\u5b58\u4e86\u8fd9\u4e2a\u5f15\u7528\u3002<\/p>\n<\/li>\n<li>\n<p>\u5b83\u53c8\u628a\u540c\u4e00\u4e2a\u5f15\u7528\u4f20\u7ed9\u4e86 Controller \u7684\u6784\u9020\u51fd\u6570\u3002Controller \u5185\u90e8\u7684 this.userJwtPayload \u4e5f\u4fdd\u5b58\u4e86\u8fd9\u4e2a\u5f15\u7528\u3002<\/p>\n<\/li>\n<p>\u56e0\u6b64&#xff0c;JwtInterceptor \u91cc\u7684 this.userJwtPayload \u548c Controller \u91cc\u7684 this.userJwtPayload \u662f\u4e24\u4e2a\u4e0d\u540c\u7684\u53d8\u91cf&#xff0c;\u4f46\u5b83\u4eec\u5b58\u50a8\u4e86\u76f8\u540c\u7684\u503c\u2014\u2014\u90a3\u4e2a\u6307\u5411\u552f\u4e00 UserJwtPayload \u5b9e\u4f8b\u7684\u5185\u5b58\u5730\u5740\u3002<\/p>\n<h2>\u5173\u4e8e readonly<\/h2>\n<p>\u4f60\u53ef\u80fd\u4f1a\u60f3&#xff0c;readonly \u4e0d\u662f\u53ea\u8bfb\u5417&#xff0c;\u4e3a\u4ec0\u4e48\u8fd8\u80fd\u6539&#xff1f;<\/p>\n<p>readonly \u5173\u952e\u5b57\u9650\u5236\u7684\u662f\u53d8\u91cf\u672c\u8eab\u4e0d\u80fd\u88ab\u91cd\u65b0\u8d4b\u503c\u3002\u4e5f\u5c31\u662f\u8bf4&#xff0c;\u4f60\u4e0d\u80fd\u8ba9 this.userJwtPayload \u8fd9\u4e2a\u201c\u53e3\u888b\u201d\u53bb\u88c5\u4e00\u628a\u65b0\u94a5\u5319\u3002<\/p>\n<p>\/\/ \u5728 Interceptor \u6216 Controller \u5185\u90e8&#xff0c;\u8fd9\u6837\u505a\u4f1a\u62a5\u9519<br \/>\nthis.userJwtPayload &#061; new UserJwtPayload(); \/\/ \u9519\u8bef&#xff01;\u4e0d\u80fd\u7ed9 readonly \u5c5e\u6027\u91cd\u65b0\u8d4b\u503c<\/p>\n<p>\u4f46\u662f&#xff0c;readonly \u4e0d\u9650\u5236\u4f60\u901a\u8fc7\u8fd9\u628a\u94a5\u5319\u53bb\u4fee\u6539\u623f\u5b50\u91cc\u7684\u4e1c\u897f\u3002Object.assign(this.userJwtPayload, payload) \u6b63\u662f\u5728\u505a\u8fd9\u4ef6\u4e8b&#xff1a;\u5b83\u6ca1\u6709\u6539\u53d8 this.userJwtPayload \u6307\u5411\u7684\u90a3\u4e2a\u5bf9\u8c61&#xff0c;\u800c\u662f\u4fee\u6539\u4e86\u90a3\u4e2a\u5bf9\u8c61\u5185\u90e8\u7684\u5c5e\u6027\u3002\u8fd9\u662f\u5b8c\u5168\u5141\u8bb8\u7684\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb208\u6b21\u3002\u5206\u4eab\u4e2a\u5f88\u6709\u610f\u601d\u7684\u4e1c\u897f\u4eca\u5929\u5728\u770b\u65b0\u9879\u76ee\u7684\u4ee3\u7801\u7684\u65f6\u5019\uff0c\u53d1\u73b0\u4e00\u4e2a\u5f88\u795e\u5947\u7684\u73b0\u8c61\u3002\u5f53\u63a5\u53e3\u8fdb\u6765\u7684\u65f6\u5019\uff0c\u88ab\u62e6\u622a\u5668\u62e6\u622a\u4e86\uff0c\u6b64\u65f6\u62e6\u622a\u5668\u7ed9\u5f53\u524d\u6784\u9020\u5668\u4e2dprivate readonly userJwtPayload: UserJwtPayload \u8fdb\u884c\u4e86 Object.assign(this.userJwtPayload, payload);\u5c31\u662f\u7ed9\u5b83\u8fdb\u884c\u4e86\u8d4b\u503c\u3002<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[568],"topic":[],"class_list":["post-57568","post","type-post","status-publish","format-standard","hentry","category-server","tag-typescript"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u5bf9\u8c61\u7684\u5f15\u7528 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.wsisp.com\/helps\/57568.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u5bf9\u8c61\u7684\u5f15\u7528 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb208\u6b21\u3002\u5206\u4eab\u4e2a\u5f88\u6709\u610f\u601d\u7684\u4e1c\u897f\u4eca\u5929\u5728\u770b\u65b0\u9879\u76ee\u7684\u4ee3\u7801\u7684\u65f6\u5019\uff0c\u53d1\u73b0\u4e00\u4e2a\u5f88\u795e\u5947\u7684\u73b0\u8c61\u3002\u5f53\u63a5\u53e3\u8fdb\u6765\u7684\u65f6\u5019\uff0c\u88ab\u62e6\u622a\u5668\u62e6\u622a\u4e86\uff0c\u6b64\u65f6\u62e6\u622a\u5668\u7ed9\u5f53\u524d\u6784\u9020\u5668\u4e2dprivate readonly userJwtPayload: UserJwtPayload \u8fdb\u884c\u4e86 Object.assign(this.userJwtPayload, payload);\u5c31\u662f\u7ed9\u5b83\u8fdb\u884c\u4e86\u8d4b\u503c\u3002\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/57568.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2025-08-15T07:29:48+00:00\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/57568.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/57568.html\",\"name\":\"\u5bf9\u8c61\u7684\u5f15\u7528 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2025-08-15T07:29:48+00:00\",\"dateModified\":\"2025-08-15T07:29:48+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/57568.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/57568.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/57568.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u5bf9\u8c61\u7684\u5f15\u7528\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\",\"url\":\"https:\/\/www.wsisp.com\/helps\/\",\"name\":\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"description\":\"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"contentUrl\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"caption\":\"admin\"},\"sameAs\":[\"http:\/\/wp.wsisp.com\"],\"url\":\"https:\/\/www.wsisp.com\/helps\/author\/admin\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"\u5bf9\u8c61\u7684\u5f15\u7528 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.wsisp.com\/helps\/57568.html","og_locale":"zh_CN","og_type":"article","og_title":"\u5bf9\u8c61\u7684\u5f15\u7528 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb208\u6b21\u3002\u5206\u4eab\u4e2a\u5f88\u6709\u610f\u601d\u7684\u4e1c\u897f\u4eca\u5929\u5728\u770b\u65b0\u9879\u76ee\u7684\u4ee3\u7801\u7684\u65f6\u5019\uff0c\u53d1\u73b0\u4e00\u4e2a\u5f88\u795e\u5947\u7684\u73b0\u8c61\u3002\u5f53\u63a5\u53e3\u8fdb\u6765\u7684\u65f6\u5019\uff0c\u88ab\u62e6\u622a\u5668\u62e6\u622a\u4e86\uff0c\u6b64\u65f6\u62e6\u622a\u5668\u7ed9\u5f53\u524d\u6784\u9020\u5668\u4e2dprivate readonly userJwtPayload: UserJwtPayload \u8fdb\u884c\u4e86 Object.assign(this.userJwtPayload, payload);\u5c31\u662f\u7ed9\u5b83\u8fdb\u884c\u4e86\u8d4b\u503c\u3002","og_url":"https:\/\/www.wsisp.com\/helps\/57568.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2025-08-15T07:29:48+00:00","author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"1 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/57568.html","url":"https:\/\/www.wsisp.com\/helps\/57568.html","name":"\u5bf9\u8c61\u7684\u5f15\u7528 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2025-08-15T07:29:48+00:00","dateModified":"2025-08-15T07:29:48+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/57568.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/57568.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/57568.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"\u5bf9\u8c61\u7684\u5f15\u7528"}]},{"@type":"WebSite","@id":"https:\/\/www.wsisp.com\/helps\/#website","url":"https:\/\/www.wsisp.com\/helps\/","name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","description":"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41","name":"admin","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/","url":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","contentUrl":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","caption":"admin"},"sameAs":["http:\/\/wp.wsisp.com"],"url":"https:\/\/www.wsisp.com\/helps\/author\/admin"}]}},"_links":{"self":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/57568","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/comments?post=57568"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/57568\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=57568"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=57568"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=57568"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=57568"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}