mirror of
https://github.com/Mrs4s/go-cqhttp.git
synced 2025-05-04 19:17:37 +08:00
doc: format & typo.
This commit is contained in:
parent
a6a666fe31
commit
fd10f0d0aa
26
docs/file.md
26
docs/file.md
@ -2,37 +2,39 @@
|
||||
|
||||
go-cqhttp 默认生成的文件树如下所示:
|
||||
|
||||
````
|
||||
```
|
||||
.
|
||||
├── go-cqhttp
|
||||
├── config.hjson
|
||||
├── config.yml
|
||||
├── device.json
|
||||
├── logs
|
||||
│ └── xx-xx-xx.log
|
||||
└── data
|
||||
├── images
|
||||
│ └── xxxx.image
|
||||
└── db
|
||||
````
|
||||
└── levleldb
|
||||
```
|
||||
|
||||
| 文件 | 用途 |
|
||||
| ----------- | ------------------- |
|
||||
| go-cqhttp | go-cqhttp可执行文件 |
|
||||
| config.hjson | 运行配置文件 |
|
||||
| ------------ | -------------------- |
|
||||
| go-cqhttp | go-cqhttp 可执行文件 |
|
||||
| config.yml | 运行配置文件 |
|
||||
| device.json | 虚拟设备配置文件 |
|
||||
| logs | 日志存放目录 |
|
||||
| data | 数据目录 |
|
||||
| data/leveldb | 数据库目录 |
|
||||
| data/images | 图片缓存目录 |
|
||||
| data/db | 数据库目录 |
|
||||
| data/voices | 语音缓存目录 |
|
||||
| data/videos | 视频缓存目录 |
|
||||
| data/cache | 发送图片缓存目录 |
|
||||
|
||||
## 图片缓存文件
|
||||
|
||||
出于性能考虑,go-cqhttp 并不会将图片源文件下载到本地,而是生成一个可以和QQ服务器对应的缓存文件 (.image),该缓存文件结构如下:
|
||||
出于性能考虑,go-cqhttp 并不会将图片源文件下载到本地,而是生成一个可以和 QQ 服务器对应的缓存文件 (.image),该缓存文件结构如下:
|
||||
|
||||
| 偏移 | 类型 | 说明 |
|
||||
| --------------- | -------- | ------------------ |
|
||||
| 0x00 | [16]byte | 图片源文件MD5 HASH |
|
||||
| --------------- | -------- | -------------------- |
|
||||
| 0x00 | [16]byte | 图片源文件 MD5 HASH |
|
||||
| 0x10 | uint32 | 图片源文件大小 |
|
||||
| 0x14 | string | 图片原名(QQ内部ID) |
|
||||
| 0x14 + 原名长度 | string | 图片下载链接 |
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user