litian
2025-03-07 5c1a0dab8fb8b19dcbe535ea1facb6272cc0c5fd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
import axios from "axios";
export const resourceCtx = "http://182.92.203.7:3007/books/resource/"; // 资源请求地址
// export const resourceCtx = "https://www.tepcb.com/books/resource/"; // 资源请求地址
// export const resourceCtx = "https://jsek.bnuic.com/books/resource/"; // 资源请求地址
// export const tinymceBaseUrl = 'https://jsek.bnuic.com/home/'
export const tinymceBaseUrl = 'https://www.tepcb.com/home/'
export let activeBook = {
  'name':'policiesAndRegulations',
  "rootCmsItemId":"162903",
  "storeRefcode":"tourism_digitalTextbooks",
  "bookId": "5271",
  "bookName":"政策法律与法规(第7版)",
 
}; // 资源请求地址
export let goodsStore = "";
// 请求教材配置信息
const getBookConfig = async (ctx) => {
  const response = await axios.get(
    ctx + "/bookConfig.json"
  );
  return response.data;
};
export const appId = 2;
export const requestTimeOut = 300000; // 请求超时时间
// export const tokenKey = "jsek-token";
export const tokenKey = "website-front-token"
 
const config = {
  resourceCtx,
  tinymceBaseUrl,
  activeBook,
  requestTimeOut,
  tokenKey,
  goodsStore,
  appId,
  getBookConfig
};
export default config;