{"id":116614,"date":"2026-10-21T22:32:41","date_gmt":"2026-10-21T14:32:41","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/116614.html"},"modified":"2026-10-21T22:32:41","modified_gmt":"2026-10-21T14:32:41","slug":"%e8%8a%82%e5%81%87%e6%97%a5%e9%ab%98%e5%b3%b0%e6%9c%9f%e7%bd%91%e7%bb%9c%e9%a2%84%e6%a1%88%ef%bc%9a%e9%ab%98%e5%b9%b6%e5%8f%91%e4%b8%8e%e7%aa%81%e5%8f%91%e6%b5%81%e9%87%8f%e9%98%b2%e5%be%a1%e4%bd%93","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/116614.html","title":{"rendered":"\u8282\u5047\u65e5\u9ad8\u5cf0\u671f\u7f51\u7edc\u9884\u6848\uff1a\u9ad8\u5e76\u53d1\u4e0e\u7a81\u53d1\u6d41\u91cf\u9632\u5fa1\u4f53\u7cfb"},"content":{"rendered":"<p>        \/* MD \/ \u5bcc\u6587\u672c\u4e2d\u7684 .toc\uff08\u542b\u535a\u5ba2\u56ed\u642c\u5bb6\u7b49\u5d4c\u5957\u7ed3\u6784\uff09\uff1b.toc-box \u5728\u4fa7\u680f\uff0c\u4e0d\u53d7\u5f71\u54cd *\/<br \/>\n        #content_views .toc,<br \/>\n        \/* \u7f16\u8f91\u5668\u5e38\u5728\u76ee\u5f55\u524d\u540e\u63d2\u5165\u7a7a p\uff08:empty \u4ecd\u5360 20px\uff09\uff0c\u4e00\u5e76\u53bb\u6389\u907f\u514d\u9876\u7a7a\u9699 *\/<br \/>\n        #content_views.markdown_views &gt; p:empty:has(+ .toc),<br \/>\n        #content_views.markdown_views &gt; .toc + p:empty,<br \/>\n        \/* \u5bcc\u6587\u672c\u65e7\u7248\u76ee\u5f55\u6807\u8bb0 *\/<br \/>\n        #content_views.htmledit_views #main-toc,<br \/>\n        #content_views.htmledit_views #hr-toc,<br \/>\n        #content_views.htmledit_views p[id*=\\&#8221;-toc\\&#8221;] {<br \/>\n          display: none !important;<br \/>\n        }<br \/>\n        \/* \u76ee\u5f55\u53bb\u6389\u540e\uff0c\u7d27\u8ddf\u7684\u9996\u4e2a\u6807\u9898\u4e0d\u518d\u591a\u51fa\u4e00\u5757\u4e0a\u8fb9\u8ddd *\/<br \/>\n        #content_views.markdown_views &gt; .toc + h1,<br \/>\n        #content_views.markdown_views &gt; .toc + h2,<br \/>\n        #content_views.markdown_views &gt; .toc + h3,<br \/>\n        #content_views.markdown_views &gt; .toc + h4,<br \/>\n        #content_views.markdown_views &gt; .toc + p:empty + h1,<br \/>\n        #content_views.markdown_views &gt; .toc + p:empty + h2,<br \/>\n        #content_views.markdown_views &gt; .toc + p:empty + h3,<br \/>\n        #content_views.markdown_views &gt; .toc + p:empty + h4 {<br \/>\n          margin-top: 0 !important;<br \/>\n        }<\/p>\n<h2>\u8282\u5047\u65e5\u9ad8\u5cf0\u671f\u7f51\u7edc\u9884\u6848&#xff1a;\u9ad8\u5e76\u53d1\u4e0e\u7a81\u53d1\u6d41\u91cf\u9632\u5fa1\u4f53\u7cfb<\/h2>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/10\/20261021143240-6ad8cd0854487.webp\" alt=\"\u5c01\u9762\u4fe1\u606f\u56fe\" \/><\/p>\n<p>\u8282\u5047\u65e5\u6d3b\u52a8\u5f00\u653e\u6216\u65b0\u670d\u542f\u52a8\u7684\u77ac\u95f4&#xff0c;\u6e38\u620f\u7f51\u5173&#xff08;Gateway&#xff09;\u4e0e\u9274\u6743\u4e2d\u5fc3\u5e38\u5728\u6570\u79d2\u5185\u627f\u53d7\u5e73\u65f6 10~50 \u500d\u7684\u7a81\u53d1\u6d41\u91cf&#xff08;Thundering Herd Problem&#xff09;\u3002\u82e5\u65e0\u4e25\u5bc6\u7684\u7f51\u7edc\u5206\u6d41\u3001\u9650\u6d41\u4e0e\u80cc\u538b\u4fdd\u62a4\u673a\u5236&#xff0c;\u77ac\u65f6\u6d77\u91cf TCP\/UDP \u63e1\u624b\u8bf7\u6c42\u5c06\u8fc5\u901f\u6253\u6ee1 epoll \u4e8b\u4ef6\u5faa\u73af&#xff0c;\u5bfc\u81f4\u7f51\u5173\u8fdb\u7a0b FD \u8017\u5c3d\u3001Redis \u961f\u5217\u963b\u585e&#xff0c;\u6700\u7ec8\u5f15\u53d1\u5168\u670d\u96ea\u5d29\u3002\u642d\u5efa\u4e00\u5957\u6db5\u76d6\u7f51\u5173\u5c42\u4ee4\u724c\u6876\u9650\u6d41\u3001\u52a8\u6001\u6392\u961f\u7cfb\u7edf\u3001\u6d88\u606f\u5305\u5206\u7ea7\u526a\u88c1\u4e0e\u81ea\u9002\u5e94\u964d\u7ea7\u7684\u7f51\u7edc\u9632\u5fa1\u4f53\u7cfb&#xff0c;\u662f\u4fdd\u969c\u8282\u5047\u65e5\u5e73\u7a33\u8fd0\u884c\u7684\u5e95\u7ebf\u3002<\/p>\n<h4>\u7a81\u53d1\u6d41\u91cf\u9632\u5fa1\u5206\u5c42\u67b6\u6784<\/h4>\n<p>\u5e94\u5bf9\u7a81\u53d1\u6d41\u91cf\u7684\u539f\u5219\u662f\u201c\u5c42\u5c42\u8fc7\u6ee4\u3001\u9010\u7ea7\u7f13\u51b2\u3001\u6309\u9700\u964d\u7ea7\u201d&#xff1a;<\/p>\n<p>[\u6d77\u91cf\u73a9\u5bb6\u5ba2\u6237\u7aef\u8bf7\u6c42]<br \/>\n       \u2502<br \/>\n       \u25bc<br \/>\n[Edge CDN \/ BGP \u9632\u62a4\u5c42] \u2500\u2500\u2500 (\u62e6\u622a L4\/L7 \u6cdb\u6d2a\u653b\u51fb\u4e0e\u5f02\u5e38\u91cd\u653e)<br \/>\n       \u2502<br \/>\n       \u25bc<br \/>\n[\u7f51\u5173\u4ee3\u7406\u63a5\u5165\u5c42 (Gateway)] \u2500\u2500\u2500 (\u4ee4\u724c\u6876\u786c\u9650\u6d41\u3001TCP \u7c98\u5305\u5408\u5e76\u3001\u534f\u8bae\u89e3\u5bc6)<br \/>\n       \u2502<br \/>\n       \u25bc<br \/>\n[\u5206\u5e03\u5f0f\u5206\u5e03\u5f0f\u6392\u961f\u670d\u52a1 (Redis &#043; Lua)] \u2500\u2500\u2500 (\u5e73\u6ed1\u63a7\u5236\u8fdb\u5165\u6e38\u620f\u4e16\u754c\u7684\u5e76\u53d1\u901f\u7387)<br \/>\n       \u2502<br \/>\n       \u25bc<br \/>\n[\u6e38\u620f\u903b\u8f91\u670d (Dedicated Server)] \u2500\u2500\u2500 (\u4e1a\u52a1\u89e3\u8026\u3001\u80cc\u538b\u76d1\u63a7\u3001\u5e7f\u64ad\u6d88\u606f\u964d\u7ea7)<\/p>\n<h4>\u7f51\u5173\u5c42\u81ea\u9002\u5e94\u4ee4\u724c\u6876\u9650\u6d41\u5668\u5b9e\u73b0<\/h4>\n<p>\u5728\u7f51\u5173\u63a5\u5165\u5c42&#xff0c;\u91c7\u7528\u57fa\u4e8e\u539f\u5b50\u64cd\u4f5c\u7684\u9ad8\u6027\u80fd\u4ee4\u724c\u6876\u7b97\u6cd5&#xff08;Token Bucket&#xff09;\u5bf9\u5355 IP\u3001\u5355 UID \u4ee5\u53ca\u5168\u5c40\u63e1\u624b\u8fde\u63a5\u5efa\u7acb\u786c\u6027\u901f\u7387\u9650\u5236&#xff08;Rate Limiting&#xff09;\u3002<\/p>\n<p>\u4ee5\u4e0b\u662f\u57fa\u4e8e Go \u8bed\u8a00\u5b9e\u73b0\u7684\u9ad8\u5e76\u53d1\u7f51\u5173\u9650\u6d41\u4e0e\u8fde\u63a5\u51c6\u5165\u63a7\u5236\u5668&#xff1a;<\/p>\n<p>package gateway<\/p>\n<p>import (<br \/>\n&#034;sync&#034;<br \/>\n&#034;sync\/atomic&#034;<br \/>\n&#034;time&#034;<br \/>\n)<\/p>\n<p>type TokenBucketLimiter struct {<br \/>\ncapacity     int64         \/\/ \u6876\u5bb9\u91cf<br \/>\ntokens       int64         \/\/ \u5f53\u524d\u53ef\u7528\u4ee4\u724c<br \/>\nrefillRate   int64         \/\/ \u6bcf\u79d2\u8865\u5145\u4ee4\u724c\u6570<br \/>\nlastRefillNs int64         \/\/ \u4e0a\u6b21\u8865\u5145\u7eb3\u79d2\u65f6\u95f4\u6233<br \/>\nlock         sync.Mutex<br \/>\n}<\/p>\n<p>func NewTokenBucketLimiter(capacity, refillRate int64) *TokenBucketLimiter {<br \/>\nreturn &amp;TokenBucketLimiter{<br \/>\ncapacity:     capacity,<br \/>\ntokens:       capacity,<br \/>\nrefillRate:   refillRate,<br \/>\nlastRefillNs: time.Now().UnixNano(),<br \/>\n}<br \/>\n}<\/p>\n<p>\/\/ Allow \u5224\u65ad\u662f\u5426\u5141\u8bb8\u5f53\u524d\u8bf7\u6c42\u901a\u8fc7<br \/>\nfunc (tb *TokenBucketLimiter) Allow(cost int64) bool {<br \/>\ntb.lock.Lock()<br \/>\ndefer tb.lock.Unlock()<\/p>\n<p>now :&#061; time.Now().UnixNano()<br \/>\nelapsed :&#061; now &#8211; tb.lastRefillNs<\/p>\n<p>\/\/ \u8865\u5145\u4ee4\u724c<br \/>\nif elapsed &gt; 0 {<br \/>\ntokensToAdd :&#061; (elapsed * tb.refillRate) \/ int64(time.Second)<br \/>\nif tokensToAdd &gt; 0 {<br \/>\ntb.tokens &#061; tb.tokens &#043; tokensToAdd<br \/>\nif tb.tokens &gt; tb.capacity {<br \/>\ntb.tokens &#061; tb.capacity<br \/>\n}<br \/>\ntb.lastRefillNs &#061; now<br \/>\n}<br \/>\n}<\/p>\n<p>if tb.tokens &gt;&#061; cost {<br \/>\ntb.tokens -&#061; cost<br \/>\nreturn true<br \/>\n}<br \/>\nreturn false<br \/>\n}<\/p>\n<p>\/\/ GatewayTrafficGovernor \u7f51\u5173\u7efc\u5408\u9650\u6d41\u63a7\u5236\u5668<br \/>\ntype GatewayTrafficGovernor struct {<br \/>\nglobalLimiter *TokenBucketLimiter<br \/>\nipLimiters    sync.Map \/\/ string -&gt; *TokenBucketLimiter<br \/>\nactiveConns   int64<br \/>\nmaxConns      int64<br \/>\n}<\/p>\n<p>func NewGatewayTrafficGovernor(maxConns, globalQPS, ipQPS int64) *GatewayTrafficGovernor {<br \/>\nreturn &amp;GatewayTrafficGovernor{<br \/>\nglobalLimiter: NewTokenBucketLimiter(globalQPS*2, globalQPS),<br \/>\nmaxConns:      maxConns,<br \/>\n}<br \/>\n}<\/p>\n<p>func (g *GatewayTrafficGovernor) AcceptConnection(clientIP string) bool {<br \/>\n\/\/ 1. \u5168\u5c40\u6d3b\u8dc3\u8fde\u63a5\u6570\u786c\u4e0a\u9650\u9632\u5fa1<br \/>\ncurr :&#061; atomic.LoadInt64(&amp;g.activeConns)<br \/>\nif curr &gt;&#061; g.maxConns {<br \/>\nreturn false<br \/>\n}<\/p>\n<p>\/\/ 2. \u5168\u5c40 QPS \u4ee4\u724c\u6876\u6821\u9a8c<br \/>\nif !g.globalLimiter.Allow(1) {<br \/>\nreturn false<br \/>\n}<\/p>\n<p>\/\/ 3. \u5355 IP \u7c92\u5ea6\u9650\u6d41&#xff0c;\u9632\u6b62\u5355\u70b9\u6076\u610f\u9ad8\u9891\u91cd\u8fde<br \/>\nlimiterVal, _ :&#061; g.ipLimiters.LoadOrStore(clientIP, NewTokenBucketLimiter(10, 2))<br \/>\nipLimiter :&#061; limiterVal.(*TokenBucketLimiter)<br \/>\nif !ipLimiter.Allow(1) {<br \/>\nreturn false<br \/>\n}<\/p>\n<p>atomic.AddInt64(&amp;g.activeConns, 1)<br \/>\nreturn true<br \/>\n}<\/p>\n<p>func (g *GatewayTrafficGovernor) ReleaseConnection() {<br \/>\natomic.AddInt64(&amp;g.activeConns, -1)<br \/>\n}<\/p>\n<h4>\u5206\u5e03\u5f0f\u5e73\u6ed1\u6392\u961f\u7cfb\u7edf (Redis &#043; Lua \u539f\u5b50\u4ee4\u724c)<\/h4>\n<p>\u5f53\u670d\u52a1\u5668\u8d1f\u8f7d\u903c\u8fd1\u5b89\u5168\u9608\u503c\u65f6&#xff0c;\u7f51\u5173\u76f4\u63a5\u963b\u65ad\u65b0\u73a9\u5bb6\u4f1a\u5bfc\u81f4\u7cdf\u7cd5\u7684\u7528\u6237\u4f53\u9a8c\u3002\u6807\u51c6\u505a\u6cd5\u662f\u5f00\u542f\u6392\u961f\u7cfb\u7edf&#xff0c;\u7531 Redis \u7ef4\u62a4\u6709\u5e8f\u96c6\u5408&#xff08;ZSET&#xff09;\u4e0e\u539f\u5b50\u53d1\u653e\u901a\u884c\u4ee4\u724c&#xff08;Ticket&#xff09;&#xff1a;<\/p>\n<p>&#8212; queue_handler.lua<br \/>\n&#8212; KEYS[1]: \u7b49\u5f85\u961f\u5217 ZSET (queue:waiting)<br \/>\n&#8212; KEYS[2]: \u73a9\u5bb6\u72b6\u6001 HASH (queue:status)<br \/>\n&#8212; ARGV[1]: \u5f53\u524d\u65f6\u95f4\u6233<br \/>\n&#8212; ARGV[2]: \u73a9\u5bb6 UID<br \/>\n&#8212; ARGV[3]: \u672c\u6279\u6b21\u653e\u884c\u6700\u5927\u4eba\u6570 (BatchAllowCount)<\/p>\n<p>local queueKey &#061; KEYS[1]<br \/>\nlocal statusKey &#061; KEYS[2]<br \/>\nlocal now &#061; tonumber(ARGV[1])<br \/>\nlocal uid &#061; ARGV[2]<br \/>\nlocal batchCount &#061; tonumber(ARGV[3])<\/p>\n<p>&#8212; 1. \u67e5\u8be2\u73a9\u5bb6\u662f\u5426\u5728\u961f\u5217\u4e2d&#xff0c;\u82e5\u4e0d\u5728\u5219\u5165\u961f<br \/>\nlocal rank &#061; redis.call(&#039;ZRANK&#039;, queueKey, uid)<br \/>\nif not rank then<br \/>\n    redis.call(&#039;ZADD&#039;, queueKey, now, uid)<br \/>\n    redis.call(&#039;HSET&#039;, statusKey, uid, &#034;WAITING&#034;)<br \/>\n    rank &#061; redis.call(&#039;ZRANK&#039;, queueKey, uid)<br \/>\nend<\/p>\n<p>&#8212; 2. \u82e5\u6392\u4f4d\u5728\u653e\u884c\u9608\u503c\u5185&#xff0c;\u51fa\u961f\u5e76\u4e0b\u53d1\u51c6\u5165\u4ee4\u724c<br \/>\nif rank and rank &lt; batchCount then<br \/>\n    redis.call(&#039;ZREM&#039;, queueKey, uid)<br \/>\n    redis.call(&#039;HSET&#039;, statusKey, uid, &#034;ALLOWED&#034;)<br \/>\n    return {1, 0} &#8212; Code 1: \u5141\u8bb8\u8fdb\u5165\u6e38\u620f, \u7b49\u5f85\u4f4d 0<br \/>\nelse<br \/>\n    return {0, rank &#043; 1} &#8212; Code 0: \u7ee7\u7eed\u7b49\u5f85, \u8fd4\u56de\u5f53\u524d\u987a\u4f4d<br \/>\nend<\/p>\n<h4>\u7f51\u7edc\u540c\u6b65\u964d\u7ea7&#xff1a;\u6d88\u606f\u5305\u5206\u7ea7\u526a\u88c1\u4e0e\u5e26\u5bbd\u538b\u5236<\/h4>\n<p>\u5728\u4e3b\u57ce\u540c\u5c4f\u4eba\u6570\u7a81\u7834 2,000 \u4eba\u65f6&#xff0c;\u5168\u5458\u5e7f\u64ad\u79fb\u52a8\u540c\u6b65\u5305&#xff08;AOI \u5e7f\u64ad&#xff09;\u4f1a\u5bfc\u81f4\u5e7f\u64ad\u91cf\u5448 $O(N^2)$ \u7ea7\u81a8\u80c0\u3002\u7f51\u7edc\u9632\u5fa1\u4f53\u7cfb\u5fc5\u987b\u6309\u4f18\u5148\u7ea7\u4e22\u5f03\u6216\u964d\u9891\u975e\u5173\u952e\u62a5\u6587&#xff1a;<\/p>\n<li>\u7b2c\u4e00\u4f18\u5148\u7ea7&#xff08;\u4fdd\u771f&#xff0c;\u7edd\u4e0d\u4e22\u5f03&#xff09;&#xff1a;\u6218\u6597\u7ed3\u7b97\u3001\u5145\u503c\u5230\u8d26\u3001\u6838\u5fc3\u6280\u80fd\u91ca\u653e\u3001\u4f24\u5bb3\u8840\u91cf\u540c\u6b65\u3002<\/li>\n<li>\u7b2c\u4e8c\u4f18\u5148\u7ea7&#xff08;\u5e73\u6ed1\u63d2\u503c\u964d\u9891&#xff09;&#xff1a;\u8fdc\u5904\u73a9\u5bb6\u79fb\u52a8\u5750\u6807\u4ece 20Hz \u964d\u81f3 5Hz&#xff0c;\u7531\u5ba2\u6237\u7aef\u6b7b\u63a8\u6cd5&#xff08;Dead Reckoning&#xff09;\u4e0e\u822a\u4f4d\u63a8\u7b97\u8fdb\u884c\u5e73\u6ed1\u8865\u507f\u3002<\/li>\n<li>\u7b2c\u4e09\u4f18\u5148\u7ea7&#xff08;\u6781\u7aef\u9ad8\u538b\u4e22\u5f03&#xff09;&#xff1a;\u73a9\u5bb6\u79f0\u53f7\u7279\u6548\u5207\u6362\u3001\u975e\u6218\u6597\u5ba0\u7269\u8ddf\u968f\u52a8\u753b\u3001\u70df\u82b1\u62d6\u5c3e\u6b21\u7ea7\u7c92\u5b50\u540c\u6b65\u6570\u636e\u3002<\/li>\n<p>\u901a\u8fc7\u8fd9\u4e00\u5957\u201c\u7f51\u5173\u81ea\u9002\u5e94\u4ee4\u724c\u9650\u6d41 &#043; Redis \u539f\u5b50\u6392\u961f &#043; AOI \u5e7f\u64ad\u5206\u7ea7\u964d\u7ea7\u201d\u7684\u7efc\u5408\u9884\u6848&#xff0c;\u5728\u591a\u6b21\u8282\u5047\u65e5\u9ad8\u5e76\u53d1\u5b9e\u6218\u4e2d&#xff0c;\u6210\u529f\u62b5\u5fa1\u4e86\u6570\u500d\u4e8e\u65e5\u5e38\u5cf0\u503c\u7684\u7a81\u53d1\u6d41\u91cf\u51b2\u51fb&#xff0c;\u4fdd\u8bc1\u4e86\u903b\u8f91\u670d CPU \u8d1f\u8f7d\u59cb\u7ec8\u5904\u4e8e 65% \u5b89\u5168\u7ebf\u4ee5\u5185\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\/* MD \/ \u5bcc\u6587\u672c\u4e2d\u7684 .toc\uff08\u542b\u535a\u5ba2\u56ed\u642c\u5bb6\u7b49\u5d4c\u5957\u7ed3\u6784\uff09\uff1b.toc-box \u5728\u4fa7\u680f\uff0c\u4e0d\u53d7\u5f71\u54cd *\/#content_views .toc,\/* \u7f16\u8f91\u5668\u5e38\u5728\u76ee\u5f55\u524d\u540e\u63d2\u5165\u7a7a p\uff08:empty \u4ecd\u5360 20px\uff09\uff0c\u4e00\u5e76\u53bb\u6389\u907f\u514d\u9876\u7a7a\u9699 *\/#content_views.markdown_views &gt; p:empty:has(+ .toc),#content_views.markdown_views &gt; .toc + p:empty,\/* \u5bcc\u6587\u672c\u65e7\u7248\u76ee\u5f55\u6807\u8bb0 *\/#content<\/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":[66,183,50,1248,51],"topic":[],"class_list":["post-116614","post","type-post","status-publish","format-standard","hentry","category-server","tag-ai","tag-unity","tag-50","tag-1248","tag-51"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u8282\u5047\u65e5\u9ad8\u5cf0\u671f\u7f51\u7edc\u9884\u6848\uff1a\u9ad8\u5e76\u53d1\u4e0e\u7a81\u53d1\u6d41\u91cf\u9632\u5fa1\u4f53\u7cfb - \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\/116614.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u8282\u5047\u65e5\u9ad8\u5cf0\u671f\u7f51\u7edc\u9884\u6848\uff1a\u9ad8\u5e76\u53d1\u4e0e\u7a81\u53d1\u6d41\u91cf\u9632\u5fa1\u4f53\u7cfb - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\/* MD \/ \u5bcc\u6587\u672c\u4e2d\u7684 .toc\uff08\u542b\u535a\u5ba2\u56ed\u642c\u5bb6\u7b49\u5d4c\u5957\u7ed3\u6784\uff09\uff1b.toc-box \u5728\u4fa7\u680f\uff0c\u4e0d\u53d7\u5f71\u54cd *\/#content_views .toc,\/* \u7f16\u8f91\u5668\u5e38\u5728\u76ee\u5f55\u524d\u540e\u63d2\u5165\u7a7a p\uff08:empty \u4ecd\u5360 20px\uff09\uff0c\u4e00\u5e76\u53bb\u6389\u907f\u514d\u9876\u7a7a\u9699 *\/#content_views.markdown_views &gt; p:empty:has(+ .toc),#content_views.markdown_views &gt; .toc + p:empty,\/* \u5bcc\u6587\u672c\u65e7\u7248\u76ee\u5f55\u6807\u8bb0 *\/#content\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/116614.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2026-10-21T14:32:41+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/10\/20261021143240-6ad8cd0854487.webp\" \/>\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=\"3 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/116614.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/116614.html\",\"name\":\"\u8282\u5047\u65e5\u9ad8\u5cf0\u671f\u7f51\u7edc\u9884\u6848\uff1a\u9ad8\u5e76\u53d1\u4e0e\u7a81\u53d1\u6d41\u91cf\u9632\u5fa1\u4f53\u7cfb - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2026-10-21T14:32:41+00:00\",\"dateModified\":\"2026-10-21T14:32:41+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/116614.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/116614.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/116614.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u8282\u5047\u65e5\u9ad8\u5cf0\u671f\u7f51\u7edc\u9884\u6848\uff1a\u9ad8\u5e76\u53d1\u4e0e\u7a81\u53d1\u6d41\u91cf\u9632\u5fa1\u4f53\u7cfb\"}]},{\"@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":"\u8282\u5047\u65e5\u9ad8\u5cf0\u671f\u7f51\u7edc\u9884\u6848\uff1a\u9ad8\u5e76\u53d1\u4e0e\u7a81\u53d1\u6d41\u91cf\u9632\u5fa1\u4f53\u7cfb - \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\/116614.html","og_locale":"zh_CN","og_type":"article","og_title":"\u8282\u5047\u65e5\u9ad8\u5cf0\u671f\u7f51\u7edc\u9884\u6848\uff1a\u9ad8\u5e76\u53d1\u4e0e\u7a81\u53d1\u6d41\u91cf\u9632\u5fa1\u4f53\u7cfb - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\/* MD \/ \u5bcc\u6587\u672c\u4e2d\u7684 .toc\uff08\u542b\u535a\u5ba2\u56ed\u642c\u5bb6\u7b49\u5d4c\u5957\u7ed3\u6784\uff09\uff1b.toc-box \u5728\u4fa7\u680f\uff0c\u4e0d\u53d7\u5f71\u54cd *\/#content_views .toc,\/* \u7f16\u8f91\u5668\u5e38\u5728\u76ee\u5f55\u524d\u540e\u63d2\u5165\u7a7a p\uff08:empty \u4ecd\u5360 20px\uff09\uff0c\u4e00\u5e76\u53bb\u6389\u907f\u514d\u9876\u7a7a\u9699 *\/#content_views.markdown_views &gt; p:empty:has(+ .toc),#content_views.markdown_views &gt; .toc + p:empty,\/* \u5bcc\u6587\u672c\u65e7\u7248\u76ee\u5f55\u6807\u8bb0 *\/#content","og_url":"https:\/\/www.wsisp.com\/helps\/116614.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2026-10-21T14:32:41+00:00","og_image":[{"url":"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/10\/20261021143240-6ad8cd0854487.webp"}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"3 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/116614.html","url":"https:\/\/www.wsisp.com\/helps\/116614.html","name":"\u8282\u5047\u65e5\u9ad8\u5cf0\u671f\u7f51\u7edc\u9884\u6848\uff1a\u9ad8\u5e76\u53d1\u4e0e\u7a81\u53d1\u6d41\u91cf\u9632\u5fa1\u4f53\u7cfb - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2026-10-21T14:32:41+00:00","dateModified":"2026-10-21T14:32:41+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/116614.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/116614.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/116614.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"\u8282\u5047\u65e5\u9ad8\u5cf0\u671f\u7f51\u7edc\u9884\u6848\uff1a\u9ad8\u5e76\u53d1\u4e0e\u7a81\u53d1\u6d41\u91cf\u9632\u5fa1\u4f53\u7cfb"}]},{"@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\/116614","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=116614"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/116614\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=116614"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=116614"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=116614"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=116614"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}