ThinkChat2.0新版上线,更智能更精彩,支持会话、画图、阅读、搜索等,送10W Token,即刻开启你的AI之旅 广告
- 修改存储参数 **请求URL:** - `/adminapi/settings.shop.Storage/setup` **请求方式:** - POST **参数说明:** |参数名 |必选 |类型 |说明 | | ------ | ------ | ------ |------ | |engine|是|string |存储引擎名称:`local`-本地,`qiniu`-七牛云,`aliyun`-阿里云OSS,`qcloud`-腾讯云OSS | |status|是|integer |状态:1-开启,0-关闭 | |bucket|是|string | 存储空间名称| |access_key|是|string |凭证 | |secret_key|是|string | 密钥| |domain|是|string | 域名| |region|否|string |地区(腾讯云需要传) | **请求参数示例** ``` { // 默认的存储 "default": "local", // 对应的存储参数 "storage": { "local": [], "qiniu": { "bucket": "", "access_key": "", "secret_key": "", "domain": "" }, "aliyun": { "bucket": "", "access_key_id": "", "access_key_secret": "", "domain": "" }, "qcloud": { "bucket": "", "region": "", "secret_id": "", "secret_key": "", "domain": "" } } } ``` **返回示例** ``` { "code": 1, "show": 0, "msg": "配置成功", "data": [] } ```