hookehuyr

refactor(constant): 将域名前缀提取为变量以提高可维护性

将硬编码的域名前缀提取为变量 `prefix`,便于后续统一修改和管理
可能是某个后台服务被关了导致反向代理出问题无法访问金数据页面
...@@ -2,15 +2,18 @@ ...@@ -2,15 +2,18 @@
2 * @Author: hookehuyr hookehuyr@gmail.com 2 * @Author: hookehuyr hookehuyr@gmail.com
3 * @Date: 2022-05-25 18:34:17 3 * @Date: 2022-05-25 18:34:17
4 * @LastEditors: hookehuyr hookehuyr@gmail.com 4 * @LastEditors: hookehuyr hookehuyr@gmail.com
5 - * @LastEditTime: 2022-06-30 16:55:15 5 + * @LastEditTime: 2025-04-02 10:11:49
6 * @FilePath: /tswj/src/constant.js 6 * @FilePath: /tswj/src/constant.js
7 - * @Description: 7 + * @Description:
8 */ 8 */
9 +// 域名前缀
10 +// const prefix = 'jsjs.onwall.cn'; // 我们自己的反向代理
11 +const prefix = 'jinshuju.com'; // 金数据域名
9 // 金数据表单 - 家长端(废弃) 12 // 金数据表单 - 家长端(废弃)
10 -export const JSJ_FORM_C = 'https://jsjs.onwall.cn/f/NAGn1D'; 13 +export const JSJ_FORM_C = `https://${prefix}/f/NAGn1D`;
11 // 金数据表单 - 家长端(普通话/方言) 14 // 金数据表单 - 家长端(普通话/方言)
12 -export const JSJ_FORM_MANDARIN = 'https://jsjs.onwall.cn/f/NAGn1D'; 15 +export const JSJ_FORM_MANDARIN = `https://${prefix}/f/NAGn1D`;
13 -export const JSJ_FORM_LOCALISM = 'https://jsjs.onwall.cn/f/HFdZIx'; 16 +export const JSJ_FORM_LOCALISM = `https://${prefix}/f/HFdZIx`;
14 17
15 // 金数据表单 - 老师端 18 // 金数据表单 - 老师端
16 export const JSJ_FORM_B = 'https://jsj.onwall.cn/f/g7D0MT'; 19 export const JSJ_FORM_B = 'https://jsj.onwall.cn/f/g7D0MT';
......