Commit 28d4d3f4 by 姜雷

添加干衣机连接地址

parent cce4480f
......@@ -4,3 +4,4 @@ export const NotRegisterCode = 1005;
export const BASE_SERVER_URL = 'https://ex-dev-dcxy-smapro-app.168cad.top';
export const SOCKET_URL = 'wss://dev-shower-wss1.168cad.top:9443/ws';
export const DRY_SOCKET_URL = 'wss://dev-share-device-wss1.168cad.top:9443';
......@@ -17,7 +17,7 @@ import PaddingPkcs7 from 'crypto-js/pad-pkcs7';
// import { paySuccess } from '../../api/Order/paySuccess';
import './connect.scss';
import { str2ab, ab2str } from '@/utils/arrayBuffer';
import { SOCKET_URL } from '@/constants';
import { DRY_SOCKET_URL } from '@/constants';
enum ContorlCode {
using = '1',
......@@ -144,7 +144,7 @@ class Connect extends Component {
type: MessageType.info,
text: '服务器连接中...',
});
Taro.connectSocket({ url: SOCKET_URL }).then(task => {
Taro.connectSocket({ url: DRY_SOCKET_URL }).then(task => {
socketTask = task;
task.onOpen(() => {
this.addMessageItem({
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment