Skip to content
关注公众号,获取新课通知

修改系统设置


接口URL

http://ceshi13.dishait.cn/admin/sysconfig

请求方式

POST

Content-Type

json

请求Header参数

参数名示例值参数类型是否必填参数描述
token2f...5eText用户Token

请求Body参数

json5
{
    "open_reg": 1,
    "reg_method": "username",
    "password_min": 7,
    "password_encrypt": "0,1,2",
    "upload_method": "oss",
    "upload_config": {
        "Bucket": "",
        "ACCESS_KEY": "",
        "SECRET_KEY": "",
        "http": ""
    },
    "api_safe": 1,
    "api_secret": "",
    "close_order_minute": 0,
    "auto_received_day": 0,
    "after_sale_day": 0,
    "alipay": {
        "app_id": "",
        "ali_public_key": "",
        "private_key": ""
    },
    "wxpay": {
        "app_id": "",       // 公众号 APPID
        "miniapp_id": "",   // 小程序 APPID
        "secret": "",       // 小程序secret
        "appid": "",        // appid
        "mch_id": "",       // 商户号
        "key": "",          // API 密钥
        "cert_client": "",
        "cert_key": ""
    }
}
参数名示例值参数类型是否必填参数描述
open_reg1Number开启注册,0关闭1开启
reg_methodusernameString注册方式,username普通phone手机
password_min7Number密码最小长度
password_encrypt0,1,2String密码复杂度,0数字、1小写字母、2大写字母、3符号;例如0,1,2
upload_methodossString上传方式,local本地,oss对象存储
upload_config-Object上传配置
api_safe1Numberapi安全,0关闭1开启
api_secret-String秘钥
close_order_minute-Number未支付订单自动关闭时间:分钟,0不自动关闭
auto_received_day-Number已发货订单自动确认时间:天,0不自动收货
after_sale_day-Number已完成订单允许申请售后:天
alipay-Object支付宝支付配置
wxpay-Object微信支付配置

成功响应示例

json5
{
	"msg": "ok",
	"data": 0
}