网站后台设置

网站的设置

查看网站某个功能的设置

GET /settings/{type}

权限

  • 不需要认证用户

参数

字段 描述
type string 类型 register:注册设置 payment:支付设置 vip:会员~设置

响应

site

字段 描述
name string 网校名称
url string 网校域名
logo string 网校logo

wap

字段 描述
version int string 微网校版本 0:未开启 1:旧版微网校 2:新版微网校

register

字段 描述
mode string 注册模式 closed:注册已关闭 email:邮箱注册 email_verify:邮箱验证注册 mobile:手机注册 email_mobile:手机或邮箱 email_verify_mobile:手机或邮箱验证
level string 注册等级 none:无 low:低 middle:中 high:高
captchaEnabled bool 是否需要验证图形验证码

payment

字段 描述
enabled bool 支付是否开启 (false,true)
alipayEnabled bool 支付宝支付是否开启 (false,true)
wxpayEnabled bool 微信支付是否开启 (false,true)
llpayEnabled bool 连连支付是否开启 (false,true)

vip

字段 描述
enabled bool 会员是否开启 (false,true)
buyType string 会员购买支持的类型
upgradeMinDay int string 可升级有效期天数
defaultBuyYears int string 默认购买年数
defaultBuyMonths int string 默认购买月数

magic

字段 描述
version int string 微网校版本 0:未开启 1:旧版微网校 2:新版微网校

consult V21.2.1版本添加

字段 描述
enabled int 客服功能是否开启 (1:开启 0:关闭)
qq array QQ客服(name:QQ客服名称 number:QQ号 url:在线咨询链接)
qqgroup array QQ群(name:QQ群名称 number:QQ群号 url:QQ群直接加入网页代码)
phone array 联系电话(name:联系人 number:联系电话)
email string 工作邮箱

ugc V21.2.1版本添加

字段 描述
review array 评价统一设置
note array 笔记统一设置
thread array 问答、话题统一设置
private_message array 私信统一设置

返回示例:

{
    "review": {
        "enable": 1,
        "course_enable": 1,
        "classroom_enable": 1,
        "question_bank_enable": 1,
        "open_course_enable": 1,
        "article_enable": 1
    },
    "note": {
        "enable": 1,
        "course_enable": 0,
        "classroom_enable": 1
    },
    "thread": {
        "enable": 1,
        "course_question_enable": 1,
        "course_thread_enable": 1,
        "classroom_question_enable": 1,
        "classroom_thread_enable": 0,
        "group_thread_enable": 1
    },
    "private_message": {
        "enable": 1,
        "student_to_student": 1,
        "student_to_teacher": 1,
        "teacher_to_student": 0
    }
}

ugc_review V21.2.1添加

字段 描述
enable int 总开关,如果总开关为0 ,其他都为0
course_enable int 课程评价开关
classroom_enable int 班级评价开关
question_bank_enable int 题库评价开关
open_course_enable int 公开课评价开关
article_enable int 资讯评论开关

返回示例:

{
    "enable": 1,
    "course_enable": 1,
    "classroom_enable": 1,
    "question_bank_enable": 1,
    "open_course_enable": 1,
    "article_enable": 1
}

ugc_note V21.2.1添加

字段 描述
enable int 总开关,如果总开关为0 ,其他都为0
course_enable int 课程笔记开关
classroom_enable int 班级笔记开关

返回示例:

{
    "enable": 1,
    "course_enable": 0,
    "classroom_enable": 1
}

ugc_thread V21.2.1添加

字段 描述
enable int 总开关,如果总开关为0 ,其他都为0
course_question_enable int 课程提问开关
course_thread_enable int 课程话题开关
classroom_question_enable int 班级提问开关
classroom_thread_enable int 班级话题开关
group_thread_enable int 小组话题开关

返回示例:

{
    "enable": 1,
    "course_question_enable": 1,
    "course_thread_enable": 1,
    "classroom_question_enable": 1,
    "classroom_thread_enable": 0,
    "group_thread_enable": 1
}

results matching ""

    No results matching ""