From 441df8843ebf37bd2eea5baee67dd590b06aa09d Mon Sep 17 00:00:00 2001
From: husq <931347610@qq.com>
Date: Fri, 15 Sep 2023 09:57:36 +0800
Subject: [PATCH] 修复token不在本地登录页一闪的情况
---
src/api/http/config.ts | 46 +++++++++++++++++++---------------------------
1 files changed, 19 insertions(+), 27 deletions(-)
diff --git a/src/api/http/config.ts b/src/api/http/config.ts
index 5199158..605867c 100644
--- a/src/api/http/config.ts
+++ b/src/api/http/config.ts
@@ -1,49 +1,41 @@
-/*
- * @Author: 胡思旗 931347610@qq.com
- * @Date: 2023-08-22 09:55:39
- * @LastEditors: husq 931347610@qq.com
- * @LastEditTime: 2023-09-13 19:01:16
- * @FilePath: \Cloud-API-Demo-Web\src\api\http\config.ts
- * @Description:
- *
- * Copyright (c) 2023 by ${git_name_email}, All Rights Reserved.
- */
export const CURRENT_CONFIG = {
// license
- appId: 'Please enter the app id.', // You need to go to the development website to apply.
- appKey: 'Please enter the app key.', // You need to go to the development website to apply.
- appLicense: 'Please enter the app license.', // You need to go to the development website to apply.
+ appId: '136971', // You need to go to the development website to apply.
+ appKey: '3e56cb20958060caeb1071cdb32400e', // You need to go to the development website to apply.
+ appLicense: 'eS2rczbPpEUZZkOuek7hB1fugv3TE0RdKyEU319A2cxmVKs7Bc11RadcPcHnQJjBq/Peja5R6bp2IILCypa2lskCUGXkXHmqxdPIVTyMQpkZtjM+eXLut/VHPdXVZOvYxKFMVel6jfEyd4rWL9jBI1N34rCvwSgad6T49mRC8R0=', // You need to go to the development website to apply.
// http
// http://172.16.13.64:8100
- baseURL: 'http://192.168.1.198:6789', // This url must end with "/". Example: 'http://192.168.1.1:6789/'
- // ws://172.16.13.129:6789/api/v1/ws
+ // baseURL: 'http://192.168.1.198:6789', // This url must end with "/". Example: 'http://192.168.1.1:6789/'
+ baseURL: 'https://dev.jxpskj.com:36789', // This url must end with "/". Example: 'http://192.168.1.1:6789/'
+ // ws: 'ws//127.0.0.1:6789/api/v1/ws',
// ws://192.168.1.198:1883/
- websocketURL: 'ws://192.168.1.198:8600/drone/api/v1/ws', // Example: 'ws://192.168.1.198:6789/api/v1/ws'
+ // websocketURL: 'ws://192.168.1.198:6789/api/v1/ws', // Example: 'ws://192.168.1.198:6789/api/v1/ws'
+ websocketURL: 'wss://182.106.212.58:36789/api/v1/ws', // Example: 'ws://192.168.1.198:6789/api/v1/ws'
// livestreaming
// RTMP Note: This IP is the address of the streaming server. If you want to see livestream on web page, you need to convert the RTMP stream to WebRTC stream.
rtmpURL: 'Please enter the rtmp access address.', // Example: 'rtmp://192.168.1.1/live/'
// GB28181 Note:If you don't know what these parameters mean, you can go to Pilot2 and select the GB28181 page in the cloud platform. Where the parameters same as these parameters.
- gbServerIp: 'Please enter the server ip.',
- gbServerPort: 'Please enter the server port.',
- gbServerId: 'Please enter the server id.',
- gbAgentId: 'Please enter the agent id',
- gbPassword: 'Please enter the agent password',
- gbAgentPort: 'Please enter the local port.',
- gbAgentChannel: 'Please enter the channel.',
+ gbServerIp: '171.34.76.175',
+ gbServerPort: '15060',
+ gbServerId: '34020000002000000001',
+ gbPassword: '12345678',
+ gbAgentId: '34020000002000000001',
+ gbAgentPort: '15060',
+ gbAgentChannel: '34020000001320000001',
// RTSP
rtspUserName: 'Please enter the username.',
rtspPassword: 'Please enter the password.',
rtspPort: '8554',
// Agora
- agoraAPPID: 'Please enter the agora app id.',
- agoraToken: 'Please enter the agora temporary token.',
- agoraChannel: 'Please enter the agora channel.',
+ agoraAPPID: '0a472a3b0f1543ab9e66d1ad4e6a91c8',
+ agoraToken: '007eJxTYPjg5tiwf+1PqwcHGApaMiLWbbtx60DWxUXthox8uTxS9U8UGAwSTcyNEo2TDNIMTU2ME5MsU83MUgwTU0xSzRItDZMtXPKZUhsCGRmm7VjFxMgAgSA+M0NiZgUDAwBxjB9/',
+ agoraChannel: 'aix',
// map
// You can apply on the AMap website.
- amapKey: 'Please enter the amap key.',
+ amapKey: '5221d3ca929a7bf59c301be186c03791',
}
--
Gitblit v1.9.3