• 5.4.0 1625ade9a6

    lxy released this 2024-09-11 15:24:54 +08:00 | 473 commits to master since this release

    • 更新了application对象的config字段类型定义,WebConfig、WechatPublicConfig类型增加location

        location: {
            protocol: 'http:' | 'https:';
            hostname: string;
            port: string;
        }
      

      请根据具体项目在系统配置-应用管理-配置管理中完成location设置

      image

    • 统一了protocol为带有冒号的形式,包括:domain对象的protocol字段,system对象的config字段中Cos的protocol

      对domain对象的更新通过升级脚本完成。对system对象的更新请在系统配置-配置管理-云存储设置中更新bucket配置-protocol

      image

    • 增加了extrafile/crop组件,在web端支持图片上传前压缩裁剪

    • 实现了bindByMobile、bindByEmail方法,允许用户通过验证码绑定手机号或邮箱

    • 细化了loginByAccount方法报错信息

    • 适配domain 5.1.0的改动

    升级脚本

    ALTER TABLE `domain` MODIFY protocol ENUM('http:', 'https:','http', 'https') NOT NULL;
    UPDATE `domain` SET protocol = 'http:' WHERE protocol = 'http';
    UPDATE `domain` SET protocol = 'https:' WHERE protocol = 'https';
    ALTER TABLE `domain` MODIFY protocol ENUM('http:', 'https:') NOT NULL;
    
    Downloads