"use strict";(self.webpackChunkdocs_site=self.webpackChunkdocs_site||[]).push([[2370],{5708:(e,n,t)=>{t.r(n),t.d(n,{assets:()=>i,contentTitle:()=>c,default:()=>u,frontMatter:()=>l,metadata:()=>r,toc:()=>a});const r=JSON.parse('{"id":"XXTLanControl.lua/core/set_retry_count","title":"\u8bbe\u7f6e\u8bf7\u6c42\u91cd\u8bd5\u6b21\u6570 (LCC.set_retry_count)","description":"\u58f0\u660e","source":"@site/docs/XXTLanControl.lua/core/set_retry_count.md","sourceDirName":"XXTLanControl.lua/core","slug":"/XXTLanControl.lua/core/set_retry_count","permalink":"/docs/XXTLanControl.lua/core/set_retry_count","draft":false,"unlisted":false,"tags":[],"version":"current","sidebarPosition":20,"frontMatter":{"sidebar_position":20},"sidebar":"tutorialSidebar","previous":{"title":"\u8bbe\u7f6e\u4e2d\u63a7\u8bbf\u95ee\u5730\u5740 (LCC.set_api_url)","permalink":"/docs/XXTLanControl.lua/core/set_api_url"},"next":{"title":"\u8bbe\u7f6e\u65e5\u5fd7\u5217\u522b\u540d (LCC.set_log_aliases)","permalink":"/docs/XXTLanControl.lua/core/set_log_aliases"}}');var s=t(4848),o=t(8453);const l={sidebar_position:20},c="\u8bbe\u7f6e\u8bf7\u6c42\u91cd\u8bd5\u6b21\u6570 (LCC.set_retry_count)",i={},a=[{value:"\u58f0\u660e",id:"\u58f0\u660e",level:2},{value:"\u53c2\u6570",id:"\u53c2\u6570",level:2},{value:"\u8fd4\u56de\u503c",id:"\u8fd4\u56de\u503c",level:2},{value:"\u8bf4\u660e",id:"\u8bf4\u660e",level:2},{value:"\u793a\u4f8b",id:"\u793a\u4f8b",level:2}];function d(e){const n={blockquote:"blockquote",br:"br",code:"code",h1:"h1",h2:"h2",header:"header",li:"li",p:"p",pre:"pre",ul:"ul",...(0,o.R)(),...e.components};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(n.header,{children:(0,s.jsx)(n.h1,{id:"\u8bbe\u7f6e\u8bf7\u6c42\u91cd\u8bd5\u6b21\u6570-lccset_retry_count",children:"\u8bbe\u7f6e\u8bf7\u6c42\u91cd\u8bd5\u6b21\u6570 (LCC.set_retry_count)"})}),"\n",(0,s.jsx)(n.h2,{id:"\u58f0\u660e",children:"\u58f0\u660e"}),"\n",(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-lua",children:"LCC.set_retry_count(retry_count)\n"})}),"\n",(0,s.jsx)(n.h2,{id:"\u53c2\u6570",children:"\u53c2\u6570"}),"\n",(0,s.jsxs)(n.ul,{children:["\n",(0,s.jsxs)(n.li,{children:["retry_count",(0,s.jsx)(n.br,{}),"\n","\u6574\u6570\u578b\uff0c",(0,s.jsx)(n.code,{children:">0"})," \u65f6\u8868\u793a\u6700\u591a\u989d\u5916\u91cd\u8bd5\u6b21\u6570\uff0c",(0,s.jsx)(n.code,{children:"<=0"})," \u65f6\u8868\u793a\u65e0\u9650\u91cd\u8bd5\u76f4\u5230\u5f97\u5230\u660e\u786e\u7ed3\u679c"]}),"\n"]}),"\n",(0,s.jsx)(n.h2,{id:"\u8fd4\u56de\u503c",children:"\u8fd4\u56de\u503c"}),"\n",(0,s.jsxs)(n.ul,{children:["\n",(0,s.jsx)(n.li,{children:"\u65e0"}),"\n"]}),"\n",(0,s.jsx)(n.h2,{id:"\u8bf4\u660e",children:"\u8bf4\u660e"}),"\n",(0,s.jsxs)(n.blockquote,{children:["\n",(0,s.jsxs)(n.p,{children:["\u63a7\u5236\u6240\u6709\u4e2d\u63a7\u63a5\u53e3\u8c03\u7528\u7684\u8d85\u65f6\u91cd\u8bd5\u7b56\u7565\u3002",(0,s.jsx)(n.br,{}),"\n","\u9047\u5230\u7f51\u7edc\u9519\u8bef\u6216\u670d\u52a1\u7aef 5xx \u54cd\u5e94\u65f6\uff0c\u4f1a\u5728 1 \u79d2\u540e\u91cd\u8bd5\uff0c\u76f4\u5230\u8fbe\u5230\u8bbe\u5b9a\u6b21\u6570\u6216\u6210\u529f\u3002",(0,s.jsx)(n.br,{}),"\n","\u9ed8\u8ba4\u503c\u4e3a 0\uff08\u65e0\u9650\u91cd\u8bd5\uff09\u3002\u5efa\u8bae\u81ea\u52a8\u5316\u573a\u666f\u4fdd\u7559\u9ed8\u8ba4\u503c\uff0c\u624b\u52a8\u811a\u672c\u4e2d\u53ef\u9650\u5236\u91cd\u8bd5\u6b21\u6570\u4ee5\u907f\u514d\u963b\u585e\u3002"]}),"\n"]}),"\n",(0,s.jsx)(n.h2,{id:"\u793a\u4f8b",children:"\u793a\u4f8b"}),"\n",(0,s.jsx)(n.pre,{children:(0,s.jsx)(n.code,{className:"language-lua",children:"LCC.set_retry_count(5)  -- \u6700\u591a\u91cd\u8bd5 5 \u6b21\n"})})]})}function u(e={}){const{wrapper:n}={...(0,o.R)(),...e.components};return n?(0,s.jsx)(n,{...e,children:(0,s.jsx)(d,{...e})}):d(e)}},8453:(e,n,t)=>{t.d(n,{R:()=>l,x:()=>c});var r=t(6540);const s={},o=r.createContext(s);function l(e){const n=r.useContext(o);return r.useMemo(function(){return"function"==typeof e?e(n):{...n,...e}},[n,e])}function c(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(s):e.components||s:l(e.components),r.createElement(o.Provider,{value:n},e.children)}}}]);