# 獲取配置信息
>[info] 獲取全局配置信息,包含(全局變量,啟用模塊,招呼語,頁面配置,導航配置等);
##
請求地址:[https://你的域名/api/config](https://xn--6qqv7i2xdt95b/api/config)
請求方法:GET
請求數據:NULL
返回數據:
`configs:配置信息`
| 名稱 | 類型 | 說明 |
| --- | --- | --- |
| api\_title | string | 頁面標題 |
| api\_footer | string | 版底信息 html格式 |
| authentication\_enable | string | 身份認證啟用字段 |
| authentication\_required | string | 身份認證必填字段 |
| contact\_enable | string | 聯系方式啟用字段 |
| contact\_required | string | 聯系方式必填字段 |
| contact\_switch | boole | 是否啟用聯系方式 |
| login\_way | string | 登錄啟用字端 |
| regdata\_required | string | 完善資料啟用字端 |
| regdata\_skip\_allow | boole | 完善資料是否允許跳過 |
| register\_enable\_item | string | 注冊啟用字端 |
| register\_way | string | 注冊方式 |
| single\_info\_enable | string | 單身資料啟用字段 |
| single\_info\_required | string | 單身資料必填字段 |
| single\_mate\_enable | string | 擇偶標準啟用字段 |
| single\_mate\_required | string | 擇偶標準必填字段 |
| SiteDomain | string | 平臺域名 |
| SiteName | string | 平臺名稱 |
| SiteTitle | string | 全局標題 |
`modules: 啟用模塊`
`greet_speaks:招呼語`
請求示例:
```
request({
url: "https://demo.bottlecms.com/api/config",
method: "GET",
success: (res) => {
if(res.code==200){
//返回成功
console.log(res.obj);
//儲存返回數據
}
}
});
```
返回示例:
```
{
"success":true,
"code":200,
"msg":"保存成功",
"obj":{
"configs":{
"api_footer":"<p>?BotleCMS 版<span style="background-color: rgb(255, 255, 0);">權所有33333</span></p><p>京I<span style="background-color: rgb(255, 0, 0);">CP備00</span>00<span style="color: rgb(255, 0, 0);">0012號</span><br></p>",
"api_style":"",
"api_title":"BottleCMS婚戀交友系統(API端)",
"authentication_enable":",name,id_card_no,face_photo,id_card_positive_photo,id_card_back_photo",
"authentication_required":",name,id_card_no,face_photo,id_card_positive_photo",
"contact_enable":",wechatId,email,qq,phone",
"contact_required":",wechatId",
"contact_switch":"1",
"login_way":",password,mobile",
"regdata_required":",photo,photo_mode,height,zodiac,education,,mate_gender,mate_age,mate_height,,wechatId,",
"regdata_skip_allow":"1",
"register_enable_item":",username,password",
"register_way":",mobile,email",
"single_info_enable":",photo,photo_mode,height,weight,blood,constellation,zodiac,income,education,purpose,marriage,children,marry,nationality,disposition,house,car,industry,profession,native_place,family_backg,drink,smoking,work_out,work_rest,pet,religious,soliloquy,hobby,voice,video,display_mode",
"single_info_required":",photo,photo_mode,height,weight,blood,constellation,zodiac,income,education,purpose,marriage,children,marry,nationality,disposition,house,car,industry,profession,school,native_place,family_backg,drink,smoking,work_out,work_rest,pet,religious,soliloquy,hobby,company,voice,video,display_mode",
"single_mate_enable":",mate_gender,mate_age,mate_height,mate_income,mate_education,mate_district,mate_marriage,mate_children,mate_constellation,mate_weight,mate_marry,mate_nationality,mate_house,mate_car,mate_disposition,mate_native_place,mate_family_backg,mate_religious",
"single_mate_required":",mate_gender,mate_age,mate_height,mate_income,mate_marriage",
"SiteDomain":"https://demo.bottlecms.com/",
"SiteName":"BottleCMS婚戀交友系統",
"SiteTitle":"BottleCMS婚戀交友系統 v4.0"
},
"modules":[
"matchmaker",
"activity",
"groupchat",
"wechatapp",
"topic",
"meipo",
"appointment",
"api",
"home",
"meet",
"moment",
"gift",
"mobile",
"wechat"
],
"greet_speaks":[
{
"id":2,
"type":2,
"speak":"嗨~",
"sex":1,
"sort":101
},
{
"id":1,
"type":3,
"speak":"你好,能認識一下嗎?",
"sex":1,
"sort":100
},
……
]
},
"map":{
"version":1621946246
}
}
```
- 序言
- 安裝及配置
- 環境要求
- 開始安裝
- Redis配置
- 問題處理
- 圖片無法顯示問題
- 站點遷移
- 接口配置
- 短信
- 阿里云短信
- 騰訊云短信
- 郵件
- SMTP發送
- 阿里云郵件API
- 支付
- 微信支付
- 支付寶
- stripe
- PayPal
- 第三方賬號
- 微信登錄
- QQ登錄
- 文件儲存
- 阿里云OSS
- 七牛云KODO
- 微信公眾號
- 微信公眾號接口配置
- 微信模版消息
- 實人認證
- 初始設置
- 按功能設置
- 首頁Banner
- 官方推薦
- 每日推薦
- 單身資料
- 單身列表
- 緣分
- 附近
- 好友
- 聊天
- 聯系方式
- 禮物
- VIP套餐
- 用戶組
- 推薦好友
- 活動
- 約會
- 媒婆
- 專業紅娘
- 話題
- 脫單寶典
- 服務
- 廣告設置
- 自定義頁
- 導入單身
- 導航設置
- 審核
- 頁面設置
- API接口
- 請求說明
- 上傳文件
- 獲取配置信息
- 獲取分類
- API支付
- 獲取支付方式
- 調起支付
- 獲取自定義頁
- 獲取文章
- 獲取文章列表
- 獲取文章詳情
- 意見反饋
- 獲取廣告
- 獲取通知
- 注冊用戶
- 用戶登錄
- 第三方賬號登錄
- 完善資料
- 單身資料
- 獲取單身列表
- 獲取單身詳情