소스 검색

feat(phone-list): 更新 API 请求地址和 headers

- 将 baseURL 修改为新的 IP 地址
- 启用 headers,设置 uhost 和 uprotocol
wui 9 달 전
부모
커밋
da6f8b8be9
1개의 변경된 파일5개의 추가작업 그리고 5개의 파일을 삭제
  1. 5 5
      src/phone-list/phone-list.service.ts

+ 5 - 5
src/phone-list/phone-list.service.ts

@@ -16,11 +16,11 @@ const token =
     'QYiuiRiEnGWQk/QutmXyo154KeBvRKpg7Eqa/6N6FPgEUlyn5hJV1UmkK2yFRgVMEjQ7ByEAg/2jYFjCleNMaaPUdJfFCr5d9Nndj3b4mx4QM6iVIxxt9B6Phl6ZJ7gVPKtxGE+XTFJepWxaKs9VZSgLI9ORZ/rDD2HZhKQtOm0='
 
 const axiosInstance = axios.create({
-    baseURL: 'http://www.dolphindata.ai/filterApi/',
-    // headers: {
-    //     uhost: 'www.dolphindata.ai',
-    //     uprotocol: 'http'
-    // }
+    baseURL: 'http://8.218.211.187/filterApi/',
+    headers: {
+        uhost: 'www.dolphindata.ai',
+        uprotocol: 'http'
+    }
 })
 
 const appId_sz = 'GftmoIruy8mkX4Z5'