|
@@ -4,9 +4,13 @@ import md5 from 'md5';
|
|
|
const API_UID = "Sw5bYYe7"; // 替换为实际的 API ID
|
|
|
const API_SECRET = "j4ThjI10jiV3L3y7"; // 替换为实际的 API Secret
|
|
|
|
|
|
+const BASE_URL = import.meta.env.PROD
|
|
|
+ ? 'https://openapi.tradesparq.com'
|
|
|
+ : 'http://localhost:3100/tradesparq';
|
|
|
+
|
|
|
enum Api {
|
|
|
- list = 'http://localhost:3100/tradesparq/cds_v2/old_api/record',
|
|
|
- listCompanies = 'http://localhost:3100/tradesparq/cds_v2/old_api/company',
|
|
|
+ list = `${BASE_URL}/cds_v2/old_api/record`,
|
|
|
+ listCompanies = `${BASE_URL}/tes/search/company`,
|
|
|
}
|
|
|
|
|
|
// 定义请求参数类型
|