1
0
mirror of https://github.com/Mrs4s/go-cqhttp.git synced 2025-05-04 11:07:39 +08:00

fix: build failed on nosilk platform

This commit is contained in:
wdvxdr 2021-09-25 13:28:23 +08:00
parent 5acb01c1a3
commit cd141d7d37
No known key found for this signature in database
GPG Key ID: 703F8C071DE7A1B6
3 changed files with 4 additions and 4 deletions

View File

@ -154,7 +154,7 @@ database: # 数据库相关设置
> 注4关闭心跳服务可能引起断线请谨慎关闭
> 注5关于MINE扫描 详见[MINE](file.md#MINE)
> 注5关于MIME扫描 详见[MIME](file.md#MIME)
## 在线状态

View File

@ -39,11 +39,11 @@ go-cqhttp 默认生成的文件树如下所示:
| 0x14 | string | 图片原名(QQ内部ID) |
| 0x14 + 原名长度 | string | 图片下载链接 |
# MINE
# MIME
启用MINE检查可以及时发现媒体资源格式错误引起的上传失败(通常表现为请求网页图片但服务端返回404.html)
在配置文件中设置 `skip-mine-scan: false`go-cqhttp 会在上传媒体资源(视频暂不支持)前对MINE进行检查
在配置文件中设置 `skip-mine-scan: false`go-cqhttp 会在上传媒体资源(视频暂不支持)前对MIME进行检查
详细允许类型如下所示:
图片:

View File

@ -6,7 +6,7 @@ package silk
import "errors"
// encode 将音频编码为Silk
func encode(record []byte, tempName string, useCache bool) ([]byte, error) {
func encode(record []byte, tempName string) ([]byte, error) {
return nil, errors.New("not supported now")
}