-
Notifications
You must be signed in to change notification settings - Fork 0
/
FAQ.html
54 lines (53 loc) · 10.9 KB
/
FAQ.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
<!DOCTYPE html>
<html lang="en-US">
<head><script>
var _hmt = _hmt || [];
(function() {
var hm = document.createElement("script");
hm.src = "https://hm.baidu.com/hm.js?37d3909d80118e6aa42455324592652d";
var s = document.getElementsByTagName("script")[0];
s.parentNode.insertBefore(hm, s);
})();
</script>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1">
<title>常见问题 | 炸毛框架</title>
<meta name="generator" content="VuePress 1.7.1">
<link rel="icon" href="/logo.png">
<link rel="manifest" href="/manifest.json">
<meta name="description" content="协程、高性能、多平台的 Web 机器人框架">
<meta name="theme-color" content="#5546a3">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="msapplication-TileColor" content="#00aba9">
<link rel="preload" href="/assets/css/0.styles.fdaceefd.css" as="style"><link rel="preload" href="/assets/js/app.b79f3c5a.js" as="script"><link rel="preload" href="/assets/js/2.5fa68601.js" as="script"><link rel="preload" href="/assets/js/10.da472d82.js" as="script"><link rel="prefetch" href="/assets/js/11.dc788cd6.js"><link rel="prefetch" href="/assets/js/12.515bda46.js"><link rel="prefetch" href="/assets/js/13.3d7ab37d.js"><link rel="prefetch" href="/assets/js/14.3a12afcf.js"><link rel="prefetch" href="/assets/js/15.0abb55d4.js"><link rel="prefetch" href="/assets/js/16.bf0a9325.js"><link rel="prefetch" href="/assets/js/17.523db1ca.js"><link rel="prefetch" href="/assets/js/18.03fc0c07.js"><link rel="prefetch" href="/assets/js/19.ebdc51ca.js"><link rel="prefetch" href="/assets/js/20.584fea75.js"><link rel="prefetch" href="/assets/js/21.12657a59.js"><link rel="prefetch" href="/assets/js/22.0693e97c.js"><link rel="prefetch" href="/assets/js/23.905272da.js"><link rel="prefetch" href="/assets/js/24.8396e24d.js"><link rel="prefetch" href="/assets/js/25.04f7e051.js"><link rel="prefetch" href="/assets/js/26.db48b8c2.js"><link rel="prefetch" href="/assets/js/27.5b11cbbd.js"><link rel="prefetch" href="/assets/js/28.85b77ffb.js"><link rel="prefetch" href="/assets/js/29.bab95703.js"><link rel="prefetch" href="/assets/js/3.6fcb1023.js"><link rel="prefetch" href="/assets/js/30.59096772.js"><link rel="prefetch" href="/assets/js/31.3473e191.js"><link rel="prefetch" href="/assets/js/32.4c5d54ca.js"><link rel="prefetch" href="/assets/js/33.abba5b8b.js"><link rel="prefetch" href="/assets/js/34.02d351e7.js"><link rel="prefetch" href="/assets/js/35.a9c2d2ac.js"><link rel="prefetch" href="/assets/js/36.611b86b4.js"><link rel="prefetch" href="/assets/js/37.dc4ddfca.js"><link rel="prefetch" href="/assets/js/38.dfdccdff.js"><link rel="prefetch" href="/assets/js/39.26ff53d5.js"><link rel="prefetch" href="/assets/js/4.cea7c2bf.js"><link rel="prefetch" href="/assets/js/40.189fdaad.js"><link rel="prefetch" href="/assets/js/5.c16cd7c2.js"><link rel="prefetch" href="/assets/js/6.fba3d83d.js"><link rel="prefetch" href="/assets/js/7.4cbc6cf9.js"><link rel="prefetch" href="/assets/js/8.951b0c9b.js"><link rel="prefetch" href="/assets/js/9.fd10e691.js">
<link rel="stylesheet" href="/assets/css/0.styles.fdaceefd.css">
</head>
<body>
<div id="app" data-server-rendered="true"><div class="theme-container"><header class="navbar"><div class="sidebar-button"><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" role="img" viewBox="0 0 448 512" class="icon"><path fill="currentColor" d="M436 124H12c-6.627 0-12-5.373-12-12V80c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12zm0 160H12c-6.627 0-12-5.373-12-12v-32c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12zm0 160H12c-6.627 0-12-5.373-12-12v-32c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12z"></path></svg></div> <a href="/" class="home-link router-link-active"><!----> <span class="site-name">炸毛框架</span></a> <div class="links"><div class="search-box"><input aria-label="Search" autocomplete="off" spellcheck="false" value=""> <!----></div> <nav class="nav-links can-hide"><div class="nav-item"><a href="/guide/" class="nav-link">
指南
</a></div><div class="nav-item"><a href="/advanced/" class="nav-link">
进阶
</a></div><div class="nav-item"><a href="/FAQ.html" aria-current="page" class="nav-link router-link-exact-active router-link-active">
FAQ
</a></div><div class="nav-item"><a href="/update.html" class="nav-link">
更新日志
</a></div><div class="nav-item"><a href="https://docs-v2.zhamao.xin/" target="_blank" rel="noopener noreferrer" class="nav-link external">
炸毛框架v2
<span><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg> <span class="sr-only">(opens new window)</span></span></a></div> <a href="https://github.com/zhamao-robot/zhamao-framework" target="_blank" rel="noopener noreferrer" class="repo-link">
GitHub
<span><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg> <span class="sr-only">(opens new window)</span></span></a></nav></div></header> <div class="sidebar-mask"></div> <aside class="sidebar"><nav class="nav-links"><div class="nav-item"><a href="/guide/" class="nav-link">
指南
</a></div><div class="nav-item"><a href="/advanced/" class="nav-link">
进阶
</a></div><div class="nav-item"><a href="/FAQ.html" aria-current="page" class="nav-link router-link-exact-active router-link-active">
FAQ
</a></div><div class="nav-item"><a href="/update.html" class="nav-link">
更新日志
</a></div><div class="nav-item"><a href="https://docs-v2.zhamao.xin/" target="_blank" rel="noopener noreferrer" class="nav-link external">
炸毛框架v2
<span><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg> <span class="sr-only">(opens new window)</span></span></a></div> <a href="https://github.com/zhamao-robot/zhamao-framework" target="_blank" rel="noopener noreferrer" class="repo-link">
GitHub
<span><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg> <span class="sr-only">(opens new window)</span></span></a></nav> <ul class="sidebar-links"><li><section class="sidebar-group depth-0"><p class="sidebar-heading open"><span>常见问题</span> <!----></p> <ul class="sidebar-links sidebar-group-items"><li><a href="/FAQ.html#cqhttp-连不上框架" class="sidebar-link">CQHTTP 连不上框架</a><ul class="sidebar-sub-headers"></ul></li><li><a href="/FAQ.html#框架循环报错" class="sidebar-link">框架循环报错</a><ul class="sidebar-sub-headers"></ul></li><li><a href="/FAQ.html#docker-连接问题" class="sidebar-link">Docker 连接问题</a><ul class="sidebar-sub-headers"></ul></li></ul></section></li></ul> </aside> <main class="page"> <div class="theme-default-content content__default"><h1 id="常见问题"><a href="#常见问题" class="header-anchor">#</a> 常见问题</h1> <h2 id="cqhttp-连不上框架"><a href="#cqhttp-连不上框架" class="header-anchor">#</a> CQHTTP 连不上框架</h2> <p><strong>一</strong>、请检查你的 CQHTTP 插件的配置文件是否正确。比如你的 CQHTTP 曾登录过不止一个 QQ 号码,且配置文件不为 general 和对应机器人的配置文件。CQHTTP 配置文件中几条核心的配置,这三条是必须填写的:</p> <ul><li><code>use_ws_reverse: true</code></li> <li><code>ws_reverse_use_universal_client: true</code></li> <li><code>ws_reverse_url: ws://127.0.0.1:20001</code></li></ul> <p>推荐可选配置:<code>access_token: 你的 token</code></p> <p><strong>二</strong>、检查炸毛框架的 <code>config/global.php</code> 中端口和地址有没有开到正确的位置,比如:酷Q和框架所在的服务器不在同一台,则框架监听地址不可以是 <code>127.0.0.1</code>,这样的情况下你需要填写你的服务器 IP 地址。如果还是无法连接,请检查服务器防火墙。如果是 Docker 用户,请看下面的 Docker 连接问题。</p> <p><strong>三</strong>、检查是否使用了安全的 WebSocket 连接。框架目前因为 Swoole 对 SSL/TLS 加密协议支持不完整,所以请不要直接使用 <code>wss</code> 来接入,可使用 <code>nginx</code> 等方案反向代理。</p> <h2 id="框架循环报错"><a href="#框架循环报错" class="header-anchor">#</a> 框架循环报错</h2> <p>如果框架在刚启动时循环报错,请将报错截图保存,提交 Issue 到 GitHub。如果此报错是由于模块加载导致,请检查你写的模块是否符合文档中所要求的框架规范、是否正确 <code>use</code> 引用对应类等。</p> <p>一般情况下框架出现报错会立即中止运行,并保存框架内的缓存到本地。你可以到框架对应的报错日志中查看具体错误进行修复。</p> <h2 id="docker-连接问题"><a href="#docker-连接问题" class="header-anchor">#</a> Docker 连接问题</h2> <p>由于 Docker 的网络是独立的,所以在使用 Docker 会出现无法连接框架等情况。</p> <ul><li>酷Q Docker 可以进入 VNC,但 CQHTTP 日志显示无法连接 WebSocket。</li></ul> <p>这种问题是最常见的,一般是由于不同环境的网络造成的</p></div> <footer class="page-edit"><!----> <div class="last-updated"><span class="prefix">上次更新:</span> <span class="time">5/3/2020, 5:14:03 PM</span></div></footer> <!----> </main></div><div class="global-ui"></div></div>
<script src="/assets/js/app.b79f3c5a.js" defer></script><script src="/assets/js/2.5fa68601.js" defer></script><script src="/assets/js/10.da472d82.js" defer></script>
</body>
</html>