!14 存储桶改为private

* 后台 使用许可页面
* 优化:移除API访问地址配置
* 后台、pc、h5 删除无用配置
* docker部署优化
* 2.0 networkMode=bridge
* changelog
* 学员端权限为空报错
* h5 我的页面请求优化
* 缓存查询
* 后台 学员列表报错、线上课-上架时间字段优化
* 后台、pc、h5 使用签名地址
* 学员端接口修改
* 后台、pc 使用签名地址
* 后台 使用签名地址
* 上传接口
* 上传接口
* 系统配置
* 线上课封面
* bucket由public改为private
* 资源相关表实体及对象修改
* 统一数据库脚本
This commit is contained in:
白书科技
2025-05-22 07:23:06 +00:00
parent c206fa4bf2
commit 12daa31ab9
134 changed files with 10054 additions and 1231 deletions

View File

@@ -2,7 +2,6 @@ import { createSlice } from "@reduxjs/toolkit";
type SystemConfigStoreInterface = {
"ldap-enabled": string;
systemApiUrl: string;
systemPcUrl: string;
systemH5Url: string;
systemLogo: string;
@@ -14,11 +13,11 @@ type SystemConfigStoreInterface = {
playerBulletSecretText: string;
playerBulletSecretColor: string;
playerBulletSecretOpacity: string;
resourceUrl?: ResourceUrlModel;
};
let defaultValue: SystemConfigStoreInterface = {
"ldap-enabled": "",
systemApiUrl: "",
systemPcUrl: "",
systemH5Url: "",
systemLogo: "",
@@ -30,6 +29,7 @@ let defaultValue: SystemConfigStoreInterface = {
playerBulletSecretText: "",
playerBulletSecretColor: "",
playerBulletSecretOpacity: "",
resourceUrl: {},
};
const systemConfigSlice = createSlice({

View File

@@ -11,6 +11,7 @@ type UserStoreInterface = {
user: null;
departments: string[];
currentDepId: number;
resourceUrl: ResourceUrlModel;
isLogin: boolean;
};
@@ -18,6 +19,7 @@ let defaultValue: UserStoreInterface = {
user: null,
departments: [],
currentDepId: Number(getDepKey()) || 0,
resourceUrl: {},
isLogin: false,
};
@@ -30,6 +32,7 @@ const loginUserSlice = createSlice({
loginAction(stage, e) {
stage.value.user = e.payload.user;
stage.value.departments = e.payload.departments;
stage.value.resourceUrl = e.payload.resource_url;
stage.value.isLogin = true;
if (e.payload.departments.length > 0 && !getDepKey()) {
stage.value.currentDepId = e.payload.departments[0].id;
@@ -41,6 +44,7 @@ const loginUserSlice = createSlice({
stage.value.departments = [];
stage.value.isLogin = false;
stage.value.currentDepId = 0;
stage.value.resourceUrl = {};
clearToken();
clearDepKey();
clearDepName();