hookehuyr

fix: 更新API配置参数和接口路径

- 移除HOME_CONTENT接口的f=customize参数
- 统一正式环境和Mock环境的f和client_id参数
- 删除config.js中关于f参数的过时注释
/*
* @Date: 2026-05-07 13:40:53
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2026-05-09 17:46:20
* @FilePath: /jls_weapp/src/api/index.js
* @Description: 文件描述
*/
import { fn, fetch } from './fn'
const Api = {
HOME_CONTENT: '/srv/?a=app_list&t=volunteer&f=customize',
HOME_CONTENT: '/srv/?a=app_list&t=volunteer',
PAY_TEST: '/srv/?a=pay',
}
......
/*
* @Description: API 环境配置
* 现在接口有的没有 f, 有的 f 不一样, 每个接口单独传 f 参数
* @Note: 当前环境只由构建配置控制;本地开发默认 mock,生产构建默认正式环境
*/
......@@ -10,8 +9,8 @@ export const API_ENVIRONMENTS = {
label: '正式环境',
baseURL: 'https://oa.onwall.cn',
requestDefaultParams: {
// f: 'room',
client_id: '772428',
f: 'futian_wxamp',
client_id: '358209',
},
useMock: false,
},
......@@ -20,8 +19,8 @@ export const API_ENVIRONMENTS = {
label: '本地 Mock 环境',
baseURL: 'https://oa.onwall.cn',
requestDefaultParams: {
// f: 'room',
client_id: '772428',
f: 'futian_wxamp',
client_id: '358209',
},
useMock: true,
},
......