Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
liveserver
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
何硕
liveserver
Commits
9502ee19
Commit
9502ee19
authored
Sep 02, 2019
by
何硕
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'heshuo' into 'master'
提交正式 See merge request
!28
parents
4bf6dc80
c5b3709e
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
index.js
index.js
+3
-3
No files found.
index.js
View file @
9502ee19
...
@@ -5,8 +5,8 @@ var axios = require('axios');
...
@@ -5,8 +5,8 @@ var axios = require('axios');
var
io
=
require
(
'
socket.io
'
)(
http
);
var
io
=
require
(
'
socket.io
'
)(
http
);
// var BaseUrl = "http://localhost/api/";
// var BaseUrl = "http://localhost/api/";
var
BaseUrl
=
"
https://zhibo.xueyoubangedu.com/api/
"
;
//
var BaseUrl = "https://zhibo.xueyoubangedu.com/api/";
//
var BaseUrl = "https://live.xueyoubangedu.com/api/";
var
BaseUrl
=
"
https://live.xueyoubangedu.com/api/
"
;
app
.
get
(
'
/
'
,
function
(
req
,
res
){
app
.
get
(
'
/
'
,
function
(
req
,
res
){
...
@@ -80,7 +80,7 @@ io.on('connection', function(socket){
...
@@ -80,7 +80,7 @@ io.on('connection', function(socket){
io
.
to
(
roomid
).
emit
(
'
ENDCLASS
'
,
{
userid
:
userid
,
roomid
:
roomid
,
user
:
user
});
io
.
to
(
roomid
).
emit
(
'
ENDCLASS
'
,
{
userid
:
userid
,
roomid
:
roomid
,
user
:
user
});
})
})
.
catch
(
function
(
error
)
{
.
catch
(
function
(
error
)
{
console
.
log
(
error
.
data
);
console
.
log
(
error
);
});
});
}
}
});
});
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment